# google-auth 2.62.0 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
Implements the OAuth 2.0 refresh token grant.

    For more details, see `rfc678 section 6`_.

    Args:
        request (google.auth.transport.Request): A callable used to make
            HTTP requests.
        token_uri (str): The OAuth 2.0 authorizations server's token endpoint
            URI.
        refresh_token (str): The refresh token to use to get a new access
            token.
        client_id (str): The OAuth 2.0 application's client ID.
        client_secret (str): The Oauth 2.0 appliaction's client secret.
        scopes (Optional(Sequence[str])): Scopes to request. If present, all
            scopes must be authorized for the refresh token. Useful if refresh
            token has a wild card scope (e.g.
            'https://www.googleapis.com/auth/any-api').
        rapt_token (Optional(str)): The reauth Proof Token.
        can_retry (bool): Enable or disable request retry behavior.

    Returns:
        Tuple[str, str, Optional[datetime], Mapping[str, str]]: The access
            token, new or current refresh token, expiration, and additional data
            returned by the token endpoint.

    Raises:
        google.auth.exceptions.RefreshError: If the token endpoint returned
            an error.

    .. _rfc6748 section 6: https://tools.ietf.org/html/rfc6749#section-6
    
=== parse google
short_description: 'Implements the OAuth 2.0 refresh token grant.'
long_description: |
  For more details, see `rfc678 section 6`_.
  
  .. _rfc6748 section 6: https://tools.ietf.org/html/rfc6749#section-6
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: |
    A callable used to make
    HTTP requests.
  kind: param
  key: 'param'
  arg_name: 'request'
  type_name: 'google.auth.transport.Request'
  is_optional: False
- DocstringParam
  description: |
    The OAuth 2.0 authorizations server's token endpoint
    URI.
  kind: param
  key: 'param'
  arg_name: 'token_uri'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: |
    The refresh token to use to get a new access
    token.
  kind: param
  key: 'param'
  arg_name: 'refresh_token'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: "The OAuth 2.0 application's client ID."
  kind: param
  key: 'param'
  arg_name: 'client_id'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: "The Oauth 2.0 appliaction's client secret."
  kind: param
  key: 'param'
  arg_name: 'client_secret'
  type_name: 'str'
  is_optional: False
- DocstringParam
  description: |
    Scopes to request. If present, all
    scopes must be authorized for the refresh token. Useful if refresh
    token has a wild card scope (e.g.
    'https://www.googleapis.com/auth/any-api').
  kind: param
  key: 'param'
  arg_name: 'scopes'
  type_name: 'Optional(Sequence[str])'
  is_optional: False
- DocstringParam
  description: 'The reauth Proof Token.'
  kind: param
  key: 'param'
  arg_name: 'rapt_token'
  type_name: 'Optional(str)'
  is_optional: False
- DocstringParam
  description: 'Enable or disable request retry behavior.'
  kind: param
  key: 'param'
  arg_name: 'can_retry'
  type_name: 'bool'
  is_optional: False
- DocstringReturns
  description: |
    The access
    token, new or current refresh token, expiration, and additional data
    returned by the token endpoint.
  kind: returns
  key: 'returns'
  type_name: 'Tuple[str, str, Optional[datetime], Mapping[str, str]]'
  is_generator: False
- DocstringRaises
  description: |
    If the token endpoint returned
    an error.
  kind: raises
  key: 'raises'
  type_name: 'google.auth.exceptions.RefreshError'
=== detect
google
=== compose google
Implements the OAuth 2.0 refresh token grant.

For more details, see `rfc678 section 6`_.

.. _rfc6748 section 6: https://tools.ietf.org/html/rfc6749#section-6

Args:
    request (google.auth.transport.Request): A callable used to make
        HTTP requests.
    token_uri (str): The OAuth 2.0 authorizations server's token endpoint
        URI.
    refresh_token (str): The refresh token to use to get a new access
        token.
    client_id (str): The OAuth 2.0 application's client ID.
    client_secret (str): The Oauth 2.0 appliaction's client secret.
    scopes (Optional(Sequence[str])): Scopes to request. If present, all
        scopes must be authorized for the refresh token. Useful if refresh
        token has a wild card scope (e.g.
        'https://www.googleapis.com/auth/any-api').
    rapt_token (Optional(str)): The reauth Proof Token.
    can_retry (bool): Enable or disable request retry behavior.

Returns:
    Tuple[str, str, Optional[datetime], Mapping[str, str]]: The access
        token, new or current refresh token, expiration, and additional data
        returned by the token endpoint.

Raises:
    google.auth.exceptions.RefreshError: If the token endpoint returned
        an error.
