account-verification-node
account-verification-node copied to clipboard
Cannot verify account
First i changed all the const to var cause it causes an error that it says typeerror: assignment something. then after signing up it will give me the verification code through text and after i input the verification code it will took 1-2 minutes and will say "The token you entered was invalid - please retry."
and also when deploying to heroku
/app/node_modules/dotenv-safe/index.js:33 throw new Error('Missing environment variables: ' + missing.join(', ')); Error: Missing environment variables: TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_NUMBER, AUTHY_API_KEY, MONGO_URL
though i already filled all the necessary information needed on .env file even in .env.example
I also get the same error - "The token you entered was invalid - please retry."
How can I resolve this?
The verification token expires in 20 secs. Therefore, the token becomes invalid after expiration. One needs to verify the token before it expires. Mine works fine now