Adapt with new next-auth version
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import NextAuth from 'next-auth'
|
||||
import Providers from 'next-auth/providers'
|
||||
import CredentialsProvider from 'next-auth/providers/credentials'
|
||||
import axios from 'axios'
|
||||
|
||||
const options = {
|
||||
providers: [
|
||||
Providers.Credentials({
|
||||
CredentialsProvider({
|
||||
name: 'Credentials',
|
||||
credentials: {
|
||||
username: {label: 'Email', type: 'email', placeholder: 'email@exemple.net'},
|
||||
@@ -28,8 +28,9 @@ const options = {
|
||||
}
|
||||
})
|
||||
],
|
||||
secret: process.env.NEXT_PUBLIC_JWT_SECRET,
|
||||
session: {
|
||||
jwt: true
|
||||
strategy: 'jwt'
|
||||
},
|
||||
pages: {
|
||||
signIn: '/soumet',
|
||||
|
||||
Reference in New Issue
Block a user