Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddb57e8

Browse files
gguussleahecole
andauthored
Fixes timeout to match comment and docs (GoogleCloudPlatform#3139)
Co-authored-by: Leah E. Cole <[email protected]>
1 parent f8a1d3f commit ddb57e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def create_jwt(project_id, private_key_file, algorithm):
6666
# The time that the token was issued at
6767
'iat': datetime.datetime.utcnow(),
6868
# The time the token expires.
69-
'exp': datetime.datetime.utcnow() + datetime.timedelta(minutes=60),
69+
'exp': datetime.datetime.utcnow() + datetime.timedelta(minutes=20),
7070
# The audience field should always be set to the GCP project id.
7171
'aud': project_id
7272
}

0 commit comments

Comments
 (0)