oauth

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BASE_TWITCH_URL = "https://id.twitch.tv/oauth2/authorize"
View Source
const DEFAULT_REDIRECT_URI = "http://localhost:8080/twitch/oauth"

Variables

This section is empty.

Functions

func OpenBrowserURL

func OpenBrowserURL(url string) error

Types

type Twitch

type Twitch struct {
	ClientID     string
	RedirectURI  string
	ResponseType string
	Scopes       []string
	State        string
}

func NewTwitch

func NewTwitch(clientID, redirectURI, responseType, state string, scope ...string) *Twitch

func NewTwitchDefault

func NewTwitchDefault(clientID string) *Twitch

func (*Twitch) Connect

func (t *Twitch) Connect() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL