core / com.schibsted.account.session / Auth / oneTimeCode

oneTimeCode

fun oneTimeCode(callback: ResultCallback<String>): Unit
Deprecated: Duplicate entry

Requests a one-time authentication code for the current user. The code expires after 30 seconds. This can be used to authenticate from for example a back-end server

Parameters

callback - Callback containing the one time code

fun oneTimeCode(serverClientId: String, callback: ResultCallback<String>): Unit

Requests a one-time authentication code for the current user. The code expires after 30 seconds. This can be used to authenticate from a back-end server. Uses a supplied server client id to create the code.

Parameters

serverClientId - The client ID of the server

callback - Callback containing the one time code