quorum
    Preparing search index...

    Function refreshAccessToken

    • 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.

      Does not throw; errors are logged and false is returned.

      const success = await refreshAccessToken();
      if (!success) {
      // Token refresh failed; redirect to login
      await clearAuthStore();
      goto('/login');
      }