oneTimeCode

fun oneTimeCode(clientId: String, callback: (ApiResult<String>) -> Unit)

Requests a OAuth authorization code for the current user.

The code is short-lived and one-time use only.

Parameters

clientId

which client to get the code on behalf of, e.g. client id for associated web application

callback

callback that receives the one time code