-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPDATE (OAuth Providers): Github] request emails if Github App
- Loading branch information
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,7 @@ export const handlers = [ | |
} | ||
), | ||
http.get('https://api.github.com/user', () => HttpResponse.json(githubUser)), | ||
http.get('https://api.github.com/user/emails', () => HttpResponse.json(githubEmails)), | ||
http.post( | ||
'https://www.linkedin.com/oauth/v2/accessToken', | ||
|
@@ -265,7 +266,7 @@ export const githubUser = { | |
company: '@rvesoftware', | ||
blog: 'https://monoald.github.io/', | ||
location: 'Knowhere', | ||
email: null, | ||
email: '[email protected]', | ||
hireable: null, | ||
bio: 'BIO description', | ||
twitter_username: 'monoald', | ||
|
@@ -288,6 +289,20 @@ export const githubUser = { | |
private_repos: 10000, | ||
}, | ||
} | ||
export const githubEmails = [ | ||
{ | ||
email: '[email protected]', | ||
primary: true, | ||
verified: true, | ||
visibility: 'public', | ||
}, | ||
{ | ||
email: '[email protected]', | ||
primary: false, | ||
verified: true, | ||
visibility: null, | ||
}, | ||
] | ||
export const githubCodeError = { | ||
error_description: 'Invalid Code.', | ||
} | ||
|