Documentation ¶
Index ¶
Constants ¶
View Source
const ( // https://developers.google.com/identity/protocols/OAuth2WebServer#offline (HTTP/REST tab) RefreshTokenUrlVer4 = "https://www.googleapis.com/oauth2/v4/token" // #nosec )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RefreshResponse ¶
type RefreshResponse struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` IDToken string `json:"id_token"` Scope string `json:"scope"` TokenType string `json:"token_type"` }
func RequestRefresh ¶
func RequestRefresh(ctx context.Context, clientId, clientSecret, refreshToken string) (RefreshResponse, error)
func (RefreshResponse) String ¶
func (r RefreshResponse) String() string
Click to show internal directories.
Click to hide internal directories.