Refresh the access token using the stored refresh token.
Makes an async request to the Tauri backend's refresh_token command.
On success, updates both the access token and refresh token in the store
(as per JWT rotation strategy). Returns false on any error without throwing.
Returns Promise<boolean>
true if the token was successfully refreshed, false otherwise.
Throws
Does not throw; errors are logged and false is returned.
Example
constsuccess = awaitrefreshAccessToken(); if (!success) { // Token refresh failed; redirect to login awaitclearAuthStore(); goto('/login'); }
Refresh the access token using the stored refresh token.
Makes an async request to the Tauri backend's
refresh_tokencommand. On success, updates both the access token and refresh token in the store (as per JWT rotation strategy). Returns false on any error without throwing.