Skip to content

When I try to authenticate using Github, I get a "User not found" message. #908

Answered by CTNicholas
motsuo373 asked this question in Help
Discussion options

You must be logged in to vote

Hey @motsuo373! Sorry for the slow response—this slipped through the cracks. I've just tried setting up a new starter kit app following the GitHub auth guide, and it's working okay for me.

Have you modified any other code in the starter kit? If so, feel free to share any code so that we can help you fix it. The error you're getting suggests that session.user.email is undefined on this line. This is a NextAuth callback, and user.email should not be undefined.

Have you tried using a different browser or a different email? Bear in mind that the email must have a GitHub account linked to it. Feel free to share more info, and I'll try to help 🙂.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@motsuo373
Comment options

Answer selected by motsuo373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants