quorum
    Preparing search index...

    Function isLoggedIn

    • Check if the user is currently logged in.

      Retrieves the access token from the Tauri Store and returns true if it exists. Does not validate token expiry or signature—use isTokenValid() for that.

      Returns Promise<boolean>

      true if an access token is stored, false otherwise.

      If the store operation fails (e.g., I/O error).

      if (await isLoggedIn()) {
      goto('/home');
      } else {
      goto('/login');
      }