TwitchAuth

class TwitchAuth(httpClient: HttpClient, clientId: String, clientSecret: String, authBaseUrl: String = "https://id.twitch.tv/oauth2")

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, clientId: String, clientSecret: String, authBaseUrl: String = "https://id.twitch.tv/oauth2")

Functions

Link copied to clipboard
fun authorizationUrl(scopes: Set<TwitchScope>, redirectUri: String, state: String? = null): String
Link copied to clipboard
suspend fun exchangeCode(code: String, redirectUri: String): TokenResponse
Link copied to clipboard
suspend fun refresh(refreshToken: String): TokenResponse
Link copied to clipboard
suspend fun validate(accessToken: String): ValidationResponse