(self, request)
Refreshes the ID token.

        Args:
            request (google.auth.transport.Request): The object used to make
                HTTP requests.

        Raises:
            google.auth.exceptions.RefreshError: If the credentials could
                not be refreshed.
            ValueError: If extracting expiry from the obtained ID token fails.
Refreshes the ID token.
Refreshes the ID token .
def refresh(self, request):
        """Refreshes the ID token.

        Args:
            request (google.auth.transport.Request): The object used to make
                HTTP requests.

        Raises:
            google.auth.exceptions.RefreshError: If the credentials could
                not be refreshed.
            ValueError: If extracting expiry from the obtained ID token fails.
        """
        if self._use_metadata_identity_endpoint:
            self.token, self.expiry = self._call_metadata_identity_endpoint(request)
        else:
            assertion = self._make_authorization_grant_assertion()
            access_token, expiry, _ = _client.id_token_jwt_grant(
                request, self._token_uri, assertion
            )
            self.token = access_token
            self.expiry = expiry
def refresh ( self , request ) : if self . _use_metadata_identity_endpoint : self . token , self . expiry = self . _call_metadata_identity_endpoint ( request ) else : assertion = self . _make_authorization_grant_assertion ( ) access_token , expiry , _ = _client . id_token_jwt_grant ( request , self . _token_uri , assertion ) self . token = access_token self . expiry = expiry