AuthTokens¶
Import: import system.webapi.auth;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
AuthTokens¶
Credentials returned after authentication or refresh. Keep refresh and CSRF tokens secret.
access_token¶
Signed token sent with authenticated requests.
refresh_token¶
Secret used to obtain a new access token.
token_type¶
Authorization scheme returned with the tokens, usually Bearer.
expires_in¶
Access token lifetime in seconds.
csrf_token¶
Token the browser must send to protect cookie-authenticated requests.
constructor¶
Creates a AuthTokens with access_token, refresh_token, token_type, expires_in, csrf_token.