How to use NextAuth with Web3Auth | Web3Auth

Auth.js (formerly known as NextAuth) is a runtime-agnostic library based on standard Web APIs. It deeply integrates with multiple modern JavaScript frameworks to provide a simple, extendable, and always private and secure authentication experience!


This is a companion discussion topic for the original entry at https://web3auth.io/docs/guides/next-auth
1 Like

Hi, it works fine for the first time login.

But when i reload the page it throws an error of duplicated token.

Could you please confirm the following: is the verifier a Custom Provider or a Social Login Provider in this case?.

Hey @bejarano.frederick

For rehydration, you can either invalidate and regenerate the idToken or use session to persist the login state.