Replies: 2 comments 1 reply
-
Curious with this as well, since i get the same error |
Beta Was this translation helpful? Give feedback.
1 reply
-
This error is thrown in your login API code above. You can add a console log to see what the error is: try {
await setAuthCookies(req, res)
} catch (e) {
console.log(e) // add this
return res.status(500).json({ error: 'Unexpected error.' })
} Then, check troubleshooting to see if there are any suggestions for that error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working on trying to fix this error for about two days now without success. From deleting and retyping out my code to starting a completely new projects, I just don't understand why i keep getting this error that isn't even giving info on where the problem is.
This is my initAuth
And here's my login api route.
Can someone please look over this and help me see the error I haven't been able to see yet? 😭
Beta Was this translation helpful? Give feedback.
All reactions