We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ceadde commit 6fc916eCopy full SHA for 6fc916e
1 file changed
auth/index.py
@@ -134,12 +134,7 @@ def revoke_refresh_token_uid(id_token):
134
revocation_second = user.tokens_valid_after_timestamp / 1000
135
# [END revoke_tokens]
136
# [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.
+ # After revoking refresh tokens, and retrieving the revocation time:
143
metadata_ref = firebase_admin.db.reference("metadata/" + uid)
144
metadata_ref.set({'revokeTime': revocation_second})
145
# [END revoke_tokens_in_db]
0 commit comments