Next-Auth: how to return the response from the server to the client – Reactjs
I am working on a mini project with Next-Auth (with credentials), I have the following scenario: const authOptions: NextAuthOptions = { providers: [ CredentialsProvider({ id: 'credentials', name: 'credentials', credentials: {}, async authorize(credentials) { const { email, password } = credentials…