Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type Twitch ¶
type Twitch struct { Client *helix.Client Streamers streamer.StreamerRepo CookieStore *sessions.CookieStore }
func (*Twitch) Authenticate ¶
func (*Twitch) HandleLogin ¶
HandleLogin is a Handler that redirects the user to Twitch for login, and provides the 'state' parameter which protects against login CSRF.
func (*Twitch) HandleOAuth2Callback ¶
HandleOauth2Callback is a Handler for oauth's 'redirect_uri' endpoint; it validates the state token and retrieves an OAuth token from the request parameters.
Click to show internal directories.
Click to hide internal directories.