`autoSignInAfterVerification` is not working for me.
My config looks like -
When I click on link in URL, my email verification does get finished correctly, but I am not signed in . I have to go through sign in screen for that.
The url I get is
pages.dev/api/auth/verify-email?token=some-long-token&callbackURL=/
How can I customize callbackURL
? and how can I safely land user to that url as a signed in user?
I am on very latest version 1.0.20
5 Replies
Thanks for help. Le me know if you need any other detail.
to change the callback url before you send them the url you can change the callbackURL query param. And for the sign-in check on the redirect if it tries to set any cookies
Thanks. This
get me going. It also solved the sign in after verification issue.
(One another issue, I am experiencing, is the verification emails do not trigger instantly until user try to sign in again and gets the message that email is not verified.).
you're suggesting verification emails should be triggered on signIn?
verification email should trigger instantly on sign up.
But it is triggering late, sometime, until user attempts a sign in.
Invitation email does get trigger instantly. Either some issue in the code which trigger verification email or my email sender (Resend) is causing delay somewhere.