Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates verify-email to HTTP method GET #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KeenWarrior
Copy link

The current verify-email HTTP method is set to POST. Which would not work on email link click.

Updates change method to GET and also update sample email content of send verification email to correct path.

@@ -48,7 +48,7 @@ If you did not request any password resets, then ignore this email.`;
const sendVerificationEmail = async (to, token) => {
const subject = 'Email Verification';
// replace this url with the link to the email verification page of your front-end app
const verificationEmailUrl = `http://link-to-app/verify-email?token=${token}`;
const verificationEmailUrl = `http://link-to-app/v1/auth/verify-email?token=${token}`;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KeenWarrior , I think it will be front-end url. frontend will call the api accordingly. so no changes required.

@chintanshahts
Copy link

@KeenWarrior, I think it will be front-end url. frontend will call the api accordingly. so no changes required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants