set_token | R Documentation |
Stores the access token and associated details (such as username and expiration time) in the internal state. The token is typically retrieved from the server during login and used for subsequent API requests.
set_token(token, user = "", expires_in = 3600)
token |
The access token string issued by the authorization server. |
user |
The username associated with the token (optional). |
expires_in |
The lifetime of the access token in seconds (optional, default is 3600 seconds). |
No return value. Updates the internal state with the token info.
Khaled Al-Shamaa, k.el-shamaa@cgiar.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.