NextAuth, error 500 on api/auth/provider
Answered
Jumbo flying squid posted this in #help-forum
Jumbo flying squidOP
Hello
I discovered the nextauth system a few days ago, but I can't seem to figure out how to configure it.
To explain a little the construction. I have my
I share my code here : https://gist.github.com/Anna-AP/aa6d31650bfd16f2315373b8573544e6
It seems that the nextauth system is called correctly when I submit, however, in console, I have a
I guess I've missed some things, however, I can't figure out what at all when I look at what I can find for help on the internet.
I discovered the nextauth system a few days ago, but I can't seem to figure out how to configure it.
To explain a little the construction. I have my
Home page which contains the LoginForm component. I do have my api/auth/[...nextauth].ts file, which is rendered there in its configuration (I wanted to test whether it called my backend before managing the rest etc.) I share my code here : https://gist.github.com/Anna-AP/aa6d31650bfd16f2315373b8573544e6
It seems that the nextauth system is called correctly when I submit, however, in console, I have a
500 error on the /api/auth/providers endpoint which is immediately followed by the /api/auth/errorpage in 500 error too.I guess I've missed some things, however, I can't figure out what at all when I look at what I can find for help on the internet.
1 Reply
Jumbo flying squidOP
Résolu 🙂
Answer