Optional errorError if refresh failed
Only present when success is false. Contains details about why the refresh failed.
Whether the refresh was successful
If true, the token property will contain the new token. If false, the error property will explain why.
Optional tokenNew token if refresh succeeded
Only present when success is true.
Token refresh result
Returned by refreshToken() to indicate success or failure. Consumers should check the success property before accessing the token.
Example