AuthenticationConfigure
Configure
Learn how to setup authentication with Magic Link, Google OAuth and Github OAuth.
Generate NextAuth Secret Key
First we need to generate a NextAuth secret key. It is used to encrypt the JWT token and to hash email verification tokens.
Generate a secret key
You can generate a secret key by running the following command:
Update the .env file
Replace the NEXTAUTH_SECRET
in the .env
file with the generated secret key.
Configure NextAuth Providers
In the next sections, we will configure the authentication providers. You can read more about all the supported NextAuth providers here.
Last updated on