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

tokenFromPasswordless

fun tokenFromPasswordless(clientId: String, clientSecret: String, identifier: String, code: String, passwordlessToken: String, vararg scopes: String): Call<TokenResponse>

Requests a token by providing an identifier and the auth code sent to it, plus the passwordless token received as a result of the request to have the auth code sent.

Parameters

code - The code sent to the identifier.

passwordlessToken - The passwordless token corresponding to the last request for sending (or resending) an auth code.

scopes - The scopes requested for the session.