web Session Url
fun webSessionUrl(clientId: String, redirectUri: String, state: String? = null, callback: (ApiResult<URL>) -> Unit)
Generate URL with embedded one-time code for creating a web session for the current user.
Parameters
client Id
which client to get the code on behalf of, e.g. client id for associated web application
redirect Uri
where to redirect the user after the session has been created
state
An opaque value used by the client to maintain state between the request and callback. It's also recommended to prevent CSRF {@link https://tools.ietf.org/html/rfc6749#section-10.12}
callback
callback that receives the URL or an error in case of failure