authenticate

suspend fun authenticate(authorizationCode: String, codeVerifier: String, redirectUri: String? = null): Session

Authenticates the user using an authorization code.

Return

The Session containing the new tokens.

Parameters

authorizationCode

The authorization code obtained from MyAnimeList.

codeVerifier

The PKCE code verifier.

redirectUri

The redirect URI used during the authorization request.

See also