getSession and getServerSession returns null with CredentialsProvider
Unanswered
Pink salmon posted this in #help-forum
Pink salmonOP
discord login is working just fine, i added the credentials provider to the providers array, like this:
then i go to
CredentialsProvider({
name: 'username and password',
credentials: {
username: { label: 'username', type: 'text' },
password: { label: 'password', type: 'password' },
},
async authorize(credentials, req) {
return { id: '1234', name: 'John Doe', email: 'john@gmail.com' }
},
}),then i go to
/api/auth/signin, but it doesnt create the jwt cookie. the session callback is never called for some reason. any idea what might be happening? (im using create-t3-app btw)