be more verbose
This commit is contained in:
parent
85ea999996
commit
e9cbcbed42
|
@ -30,7 +30,7 @@ class GoogleOID:
|
|||
r = self.requests.post('https://oauth2.googleapis.com/token', data=data) # exchange code for token
|
||||
|
||||
if r.status_code != 200: # if not successful
|
||||
return {'error': True, 'reason': f'Could not exchange code for access key {r.status_code}'}
|
||||
return {'error': True, 'reason': f'Could not exchange code for access key {r.text}'}
|
||||
|
||||
return {'error': False, 'data': r.json()}
|
||||
|
||||
|
|
Reference in New Issue