updateToken
updateToken
- updateToken(
token:string):Promise<void>
Update the auth token being used by the client. Use this when the old token is about to expire and you have refreshed it through OAuth2.
Parameters
token
The new token that the client should start to use.
Returns
Promise<void>
Returns empty object when successful. Throws an error with the server’s error message when unsuccessful.