Merge pull request #675 from eht16/fix_openid_update_token_typo

Fix token name in session for OIDC and GitHub authentication
This commit is contained in:
Khanh Ngo 2020-03-06 13:54:59 +07:00 committed by GitHub
commit 65a59d2e59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ def github_oauth():
return session.get('github_token')
def update_token(token):
session['google_token'] = token
session['github_token'] = token
return token
github = authlib_oauth_client.register(

View file

@ -12,7 +12,7 @@ def oidc_oauth():
return session.get('oidc_token')
def update_token(token):
session['google_token'] = token
session['oidc_token'] = token
return token
oidc = authlib_oauth_client.register(