AccessToken extension to the User interface

no subtypes hierarchy

Initializer
AccessToken(AccessToken unknown)
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
expiredshared default Boolean expired()

Check if the access token is expired or not.

logoutshared default AccessToken logout(Anything(Throwable?) callback)

Revoke refresh token and calls the logout endpoint. This is a openid-connect extension and might not be available on all providers.

Parameters:
  • callback
    • The callback function returning the results.
refreshshared default AccessToken refresh(Anything(Throwable?) callback)

Refresh the access token

Parameters:
  • callback
    • The callback function returning the results.
revokeshared default AccessToken revoke(String token_type, Anything(Throwable?) callback)

Revoke access or refresh token

Parameters:
  • token_type
    • A String containing the type of token to revoke. Should be either “access_token” or “refresh_token”.
  • callback
    • The callback function returning the results.
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: User
clearCache, isAuthorised, principal, setAuthProvider