Gets the currently stored API Access Token.
This function is not recommended for use as the response may be invalid. No checks are peformed here.
getValidAccessToken to get a valid access token.
Access token.
Get a VALID API Access Token, issuing a new token if needed.
When resolved, the new token (if needed) is also saved to getCurrentAccessToken
A promise containing a valid access token.
Error General error during token refresh
ParkrunRefreshExpiredError Error thrown when the current refresh token has expired for whatever reason.
Get a new access token using the current refresh token.
Upon fulfilment of this promise the new token will be accessed as before.
Error General error during token refresh
ParkrunAuthError Error thrown then the current refresh token is invalid.
ParkrunRefreshExpiredError Error thrown when the current refresh token has expired for whatever reason.
Generated using TypeDoc
A class representing the client's authentication tokens.