You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to implement "Update email" functionality in a Next.js app using next-auth.
Are there any resources (or can anyone share any tips) on approaching this.
As far as I can see, the email column on the User table can be updated without necessarily updating the Accounts table (connected OAuth accounts). Sending the verification emails etc to the new email address will need to be handled ourselves.
With this, the email field on the User table can be "out of sync" with the emails in the Accounts table, so I'm guessing I will also need to disable "allowDangerousEmailAccountLinking".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking to implement "Update email" functionality in a Next.js app using next-auth.
Are there any resources (or can anyone share any tips) on approaching this.
As far as I can see, the email column on the User table can be updated without necessarily updating the Accounts table (connected OAuth accounts). Sending the verification emails etc to the new email address will need to be handled ourselves.
With this, the email field on the User table can be "out of sync" with the emails in the Accounts table, so I'm guessing I will also need to disable "allowDangerousEmailAccountLinking".
Anything else I should be considering?
Really appreciate any help :)
Beta Was this translation helpful? Give feedback.
All reactions