Skip to content

Commit

Permalink
add access token as custom attribute in claim
Browse files Browse the repository at this point in the history
  • Loading branch information
lzrscg committed Aug 24, 2021
1 parent bb3ace5 commit 19be2d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/openid.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const getUserInfo = accessToken =>
updated_at: NumericDate(
// OpenID requires the seconds since epoch in UTC
new Date(Date.parse(userDetails.updated_at))
)
),

// Custom attribute
gitHubAccessToken: accessToken,
};
logger.debug('Resolved claims: %j', claims, {});
return claims;
Expand Down

0 comments on commit 19be2d1

Please sign in to comment.