Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion snippets/auth/get_service_account_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
access_token = access_token_info.access_token
expiration_time = access_token_info.expiry
# Attach access_token to HTTPS request in the "Authorization: Bearer" header
# After expiration_time, you must generate a new access token
# Access tokens are short lived
# Once the token reaches the expiration time, it can no longer be used.
# To get a new token, rerun this code to generate a fresh acccess token
Comment thread
mjeremia marked this conversation as resolved.
Outdated
# [END get_service_account_tokens]

print(f'The access token {access_token} expires at {expiration_time}')