GitHub App Login Failure with Missing Permissions and Absence of Public Email #7777
Labels
enhancement
New feature or request
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Description 📓
When the "Account permissions -> email addresses (read)" permission is not granted, Next.js Auth throws an error (with the Prisma Adapter) indicating that the email address cannot be found. Additionally, a client-side error occurs (OAuthCreateAccountError). It would be beneficial for Next.js Auth to throw an error named "PermissionMissing" or "EmailMissing" instead.
How to reproduce ☕️
Create a GitHub App without setting any permissions, and then attempt to log in using Next.js Auth. Ensure that you do not have a public email associated with your GitHub account.
The text was updated successfully, but these errors were encountered: