We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8a1d3f commit ddb57e8Copy full SHA for ddb57e8
iot/api-client/mqtt_example/cloudiot_mqtt_example.py
@@ -66,7 +66,7 @@ def create_jwt(project_id, private_key_file, algorithm):
66
# The time that the token was issued at
67
'iat': datetime.datetime.utcnow(),
68
# The time the token expires.
69
- 'exp': datetime.datetime.utcnow() + datetime.timedelta(minutes=60),
+ 'exp': datetime.datetime.utcnow() + datetime.timedelta(minutes=20),
70
# The audience field should always be set to the GCP project id.
71
'aud': project_id
72
}
0 commit comments