GitHub save more data retrieved from GitHub

This commit is contained in:
Jan Dvorak
2021-10-27 17:55:39 +02:00
parent b234720d8d
commit ca50ef17e3
3 changed files with 10 additions and 1 deletions

View File

@@ -6,6 +6,9 @@
#### Meteor Version Release
* `github-oauth@1.4.0`
- More data will be retrieved and saved under `services.github` on the user account.
#### Independent Releases
* `github-oauth@1.3.2`

View File

@@ -15,6 +15,12 @@ OAuth.registerService('github', 2, null, (query) => {
accessToken: OAuth.sealSecret(accessToken),
email: identity.email || (primaryEmail && primaryEmail.email) || '',
username: identity.login,
name: identity.name,
avatar: identity.avatar_url,
company: identity.company,
blog: identity.blog,
location: identity.location,
bio: identity.bio,
emails
},
options: { profile: { name: identity.name } }

View File

@@ -1,6 +1,6 @@
Package.describe({
summary: 'GitHub OAuth flow',
version: '1.3.2'
version: '1.4.0'
});
Package.onUse(api => {