package
Version:
v0.0.0-...-9d6c436
Opens a new window with list of versions in this module.
Published: May 17, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const TWITCH_CSRF_COOKIE_NAME = "csrf_token_tw"
type OAuth2AuthorizationParams struct {
ClientID string `url:"client_id"`
ClientSecret string `url:"client_secret"`
RedirectURI string `url:"redirect_uri"`
Code string `url:"code"`
GrantType string `url:"grant_type"`
}
type OAuth2AuthorizedResponse struct {
TokenType string `json:"token_type"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
Scope []string `json:"scope"`
ExpiresIn int `json:"expires_in"`
}
type OAuth2CallbackAppParams struct {
Token string `url:"token"`
}
type OAuth2URLParams struct {
ClientID string `url:"client_id"`
RedirectURI string `url:"redirect_uri"`
ResponseType string `url:"response_type"`
Scope string `url:"scope"`
State string `url:"state"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.