#NextAuth 401 when trying to login

5 messages · Page 1 of 1 (latest)

pastel pollen
#

Hi, So i'm trying to login using nextAuth to users I have on the Directus users area. I have followed a few Directus/NextAuth tutorials, but i'm confused about how the bearer token is added.
The error i'm getting is:

AxiosError {message: 'Request failed with status code 401', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
code
:
"ERR_BAD_REQUEST"

I don't even know what Axios request it's talking about as theres nothing in any of the auth files. Thanks

jagged perch
pastel pollen
jagged perch
#

authorization: Bearer [key here]

#

Should be how you use it