OAuthTokens

Interface OAuthTokens contains the access token and the refresh token required for OAuth authentication.

OAuthTokens Functions

setAccessToken OAuthTokens.setAccessToken( accessToken ) Sets the value of the access token
getAccessToken OAuthTokens.getAccessToken( ) Returns the value of the access token
setIdToken OAuthTokens.setIdToken( idToken ) Sets the value of the id token
getIdToken OAuthTokens.getIdToken( ) Returns the value of the id token
getJWToken OAuthTokens.getJWToken( ) Returns the parsed JWT from the ID user token.
getOAuthId OAuthTokens.getOAuthId( )
setRefreshToken OAuthTokens.setRefreshToken( refreshToken ) Sets the value of the refresh token
getRefreshToken OAuthTokens.getRefreshToken( ) Returns the value of the refresh token
setTokenExpiry OAuthTokens.setTokenExpiry( tokenExpiry ) Sets the token expiry
getTokenExpiry OAuthTokens.getTokenExpiry( ) Returns the token expiry
setTokenType OAuthTokens.setTokenType( tokenType ) Sets the value of the token type e.g Bearer
getTokenType OAuthTokens.getTokenType( ) Returns the value the token type e.g Bearer