Skip to content

Commit 6fc916e

Browse files
committed
comments
1 parent 5ceadde commit 6fc916e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

auth/index.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,7 @@ def revoke_refresh_token_uid(id_token):
134134
revocation_second = user.tokens_valid_after_timestamp / 1000
135135
# [END revoke_tokens]
136136
# [START revoke_tokens_in_db]
137-
# After revoking tokens, follow up with:
138-
user = auth.get_user(uid)
139-
# Convert to seconds as the auth_time in the token claims is in seconds.
140-
revocation_second = user.tokens_valid_after_timestamp / 1000
141-
# Save the refresh token revocation timestamp. This is needed to track
142-
# ID token revocation via Firebase rules.
137+
# After revoking refresh tokens, and retrieving the revocation time:
143138
metadata_ref = firebase_admin.db.reference("metadata/" + uid)
144139
metadata_ref.set({'revokeTime': revocation_second})
145140
# [END revoke_tokens_in_db]

0 commit comments

Comments
 (0)