#I keep getting an Unauthorised Exception when trying to login with passport sessions.

4 messages · Page 1 of 1 (latest)

dawn horizon
#

try using username instead of email as the parameter for the validate method in LocalStrategy

 async validate(username: string, password: string)
warped willow
#

What does your request look like?

warped willow
#

In the request, change email to username

#

yep, that would fix it. Common mistake with passport-local