-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoauth.go
36 lines (30 loc) · 918 Bytes
/
oauth.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package kicksdk
// OAuthScope is a scope that enable an app to request a level of access to Kick and define
// the specific actions an application can perform.
//
// Reference: https://docs.kick.com/getting-started/scopes
type OAuthScope string
const (
ScopeUserRead OAuthScope = "user:read"
ScopeChannelRead OAuthScope = "channel:read"
ScopeChannelWrite OAuthScope = "channel:write"
ScopeChatWrite OAuthScope = "chat:write"
ScopeStreamKeyRead OAuthScope = "streamkey:read"
ScopeEventsSubscribe OAuthScope = "events:subscribe"
)
// AuthorizationType is a type of authorization (token) that will be used to authorize
// requests to the Kick's APIs.
type AuthorizationType int
const (
AuthTypeUserToken AuthorizationType = iota + 1
)
type (
AccessTokens struct {
UserAccessToken string
}
Credentials struct {
ClientID string
ClientSecret string
RedirectURI string
}
)