core / com.schibsted.account.network.service.authentication / OAuthService / tokenFromAuthCode

tokenFromAuthCode

fun tokenFromAuthCode(clientId: String, clientSecret: String, authCode: String, redirectUri: String, scopes: Array<String>?, codeVerifier: String? = null): Call<TokenResponse>

Requests a token by providing an authentication code

Parameters

clientId - The client id of the app.

clientSecret - The client secret of the app.

authCode - The auth code used for authentication.

redirectUri - The uri the redirect targeted.

scopes - The scopes requested for the session.