Closed
Description
When we reach this line of code, we get "TypeError: unsupported type for timedelta seconds component: str"
It would appear that the response from the token server has expires_in as a string:
Request:
https://securetoken.googleapis.com/v1/token?key=AI...
{
'grant_type':
'refresh_token',
'client_id': '76...',
'client_secret': '...',
'refresh_token': 'AO...'
}
Response:
{
'access_token': 'ey...',
**'expires_in': '3600'**,
'token_type': 'Bearer',
'refresh_token': 'AO...',
'id_token': 'ey...',
'user_id': 'Xs...',
'project_id': '23...'
}
Seems this code should expect a string and not an integer.