refresh Token
fun refreshToken(force: Boolean = false, completion: (Completion<String?>) -> Unit = {})
Content copied to clipboard
Refreshes the current access token if needed.
Parameters
force
Forces a refresh even if the current accessToken is still valid. Defaults to false.
completion
The block to be called when the request is completed including either a new valid accessToken or a Throwable.