Mis apuntes next-auth
Fuente: https://www.hamedbahram.io/notes/next-auth-v4
documentacion ofical: https://next-auth.js.org/getting-started/introduction
Instalacion
npm install next-auth
páginas/api/auth/[... nextauth].js
import NextAuth from 'next-auth'import GithubProvider from 'next-auth/providers/github' export default NextAuth({ providers: [ GithubProvider({ clientId: process.env.GITHUB_ID, clientSecret: process.env.GITHUB_SECRET }) // ...add more providers here ]})
Comentarios
Publicar un comentario