From ca50ef17e397569800261efd6e40a2089df969e7 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Wed, 27 Oct 2021 17:55:39 +0200 Subject: [PATCH] GitHub save more data retrieved from GitHub --- History.md | 3 +++ packages/github-oauth/github_server.js | 6 ++++++ packages/github-oauth/package.js | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index b63e454505..d3f49e010b 100644 --- a/History.md +++ b/History.md @@ -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` diff --git a/packages/github-oauth/github_server.js b/packages/github-oauth/github_server.js index 2991fdb0c9..b71995d1c0 100644 --- a/packages/github-oauth/github_server.js +++ b/packages/github-oauth/github_server.js @@ -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 } } diff --git a/packages/github-oauth/package.js b/packages/github-oauth/package.js index 959a69a86b..de8e9415cb 100644 --- a/packages/github-oauth/package.js +++ b/packages/github-oauth/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: 'GitHub OAuth flow', - version: '1.3.2' + version: '1.4.0' }); Package.onUse(api => {