Closed hellodword closed 1 year ago
https://github.com/subhendukundu/worker-auth-providers/blob/605febeb431fb86a96213bfc4f2f4bd8ec278987/src/providers/github/users.ts#L53-L63
Without user:email in the scope:
user:email
const githubLoginUrl = await github.redirect({ options: { scope: ['read:user'],
And when I'm a github user without public emails, I will get an error:
TypeError: o.find is not a function
I hope email could be optional.
Yup, makes sense! Would you like to create a PR?
https://github.com/subhendukundu/worker-auth-providers/blob/605febeb431fb86a96213bfc4f2f4bd8ec278987/src/providers/github/users.ts#L53-L63
Without
user:email
in the scope:And when I'm a github user without public emails, I will get an error:
I hope email could be optional.