Module: Google::Auth::Extras::IdentityCredentialRefreshPatch
- Included in:
- ImpersonatedCredential
- Defined in:
- lib/google/auth/extras/identity_credential_refresh_patch.rb
Overview
This module fixes an issue with ID tokens not automatically refreshing because their expiration is encoded in the JWT.
Instance Method Summary collapse
Instance Method Details
#update_token! ⇒ Object
9 10 11 12 13 |
# File 'lib/google/auth/extras/identity_credential_refresh_patch.rb', line 9 def update_token!(*) super.tap do self.expires_at = decoded_id_token['exp'] if id_token end end |