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

oneTimeSessionUrl

fun oneTimeSessionUrl(targetClientId: String, redirectUri: String, callback: ResultCallback<String>): Unit

Requests a one-time session URL to be used in for example WebViews for the current user. The code expires after 60 seconds.

Parameters

targetClientId - The client ID this token is intended for. Note: Will not work for other clients

redirectUri - The desired redirect to receive from /session/ when the session represented by the code received is created.

callback - A callback with the one time session URL