Closed AugustinSorel closed 4 months ago
I was following this page about adding account linkingn with github oauth. However when following the doc, I get the following error when hitting https://api.github.com/user/emails
https://api.github.com/user/emails
{ message: 'Not Found', documentation_url: 'https://docs.github.com/rest/users/emails#list-email-addresses-for-the-authenticated-user' }
the fix for this was to change
const url = await github.createAuthorizationURL(state);
to
const url = await github.createAuthorizationURL(state, { scopes: ["user:email"], });
I think it would be nice if the doc page would show this change
Fixed
Description
I was following this page about adding account linkingn with github oauth. However when following the doc, I get the following error when hitting
https://api.github.com/user/emails
the fix for this was to change
to
I think it would be nice if the doc page would show this change