// runtime/subsystems/auth/runtime/session-expired.error.ts
var SessionExpiredError = class extends Error {
  /** Duck-type marker — works across package boundaries where `instanceof` fails. */
  isSessionExpired = true;
  constructor(message = "Access token rejected by provider") {
    super(message);
    this.name = "SessionExpiredError";
  }
};
function isSessionExpiredError(err) {
  if (err instanceof SessionExpiredError) return true;
  if (err !== null && typeof err === "object" && "isSessionExpired" in err) {
    return err.isSessionExpired === true;
  }
  return false;
}

export {
  SessionExpiredError,
  isSessionExpiredError
};
//# sourceMappingURL=chunk-7RELQJIN.js.map