core / com.schibsted.account.session / Auth

Auth

class Auth

Constructors

<init>

Auth(user: User)

Properties

user

val user: User

Functions

oneTimeCode

fun oneTimeCode(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 for example a back-end server

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.

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.