Nextauth Credentials provider
I setup up the Github provider and added the Credentials provider to login with an email and password. The Github provider works fine, but now I tried to add the Credentials provider with jwt, but I can't make it work.
Currently I get this error if I try to sign in:
Currently I am signin it doing this in my form:
5 Replies
My
[...nextauth].ts
looks like this:
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I was able to login with credentials but after I login I get redirected here:
http://localhost:3000/sign-in?callbackUrl=http%3A%2F%2Flocalhost%3A3000%2Fdashboard
Basically removed the session callback, also it seems that the github provider still works
if I remove dashboard from the matcher it works, seems like the middleware does not properly work:
This redirects but I can view the page also not being logged in
If I add dashboard like this, I get this strange redirect url
http://localhost:3000/sign-in?callbackUrl=http%3A%2F%2Flocalhost%3A3000%2Fdashboard
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Works now I think