twitchkt
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
twitchkt
auth
/
io.github.captnblubber.twitchkt.auth
/
TwitchAuth
Twitch
Auth
class
TwitchAuth
(
httpClient
:
HttpClient
,
clientId
:
String
,
clientSecret
:
String
,
authBaseUrl
:
String
=
"https://id.twitch.tv/oauth2"
)
Members
Constructors
Twitch
Auth
Link copied to clipboard
constructor
(
httpClient
:
HttpClient
,
clientId
:
String
,
clientSecret
:
String
,
authBaseUrl
:
String
=
"https://id.twitch.tv/oauth2"
)
Functions
authorization
Url
Link copied to clipboard
fun
authorizationUrl
(
scopes
:
Set
<
TwitchScope
>
,
redirectUri
:
String
,
state
:
String
?
=
null
)
:
String
exchange
Code
Link copied to clipboard
suspend
fun
exchangeCode
(
code
:
String
,
redirectUri
:
String
)
:
TokenResponse
refresh
Link copied to clipboard
suspend
fun
refresh
(
refreshToken
:
String
)
:
TokenResponse
validate
Link copied to clipboard
suspend
fun
validate
(
accessToken
:
String
)
:
ValidationResponse