authorize

fun authorize(    accessToken: String,     expiryInSeconds: Int?,     handler: CompletionHandler<Void>)

Sets the token on the authorization strategy, overriding any existing access token.

Since

3.2.0

Parameters

accessToken

The new Access Token to use.

expiryInSeconds

Optional expiry time of the token in seconds. This defaults to two days.

handler

to be executed when an operation is completed