Sha256: e463d1294cb4f7445fd1362eea9f318a3e18672f71d22fd09eab6da259f62c6d
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true module Google module Auth module Extras # This module fixes an issue with ID tokens not automatically refreshing # because their expiration is encoded in the JWT. module IdentityCredentialRefreshPatch def update_token!(*) super.tap do self.expires_at = decoded_id_token['exp'] if id_token end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
googleauth-extras-0.4.0 | lib/google/auth/extras/identity_credential_refresh_patch.rb |
googleauth-extras-0.3.0 | lib/google/auth/extras/identity_credential_refresh_patch.rb |