Skip to content

Type Alias: OcSessionCheck

TypeScript
type OcSessionCheck = 
  | {
  session: SessionPayload;
  status: "signed_in";
}
  | {
  reason?: OcSessionRefusal;
  status: "signed_out";
}
  | {
  reason?: OcSessionUnavailable;
  status: "unavailable";
};

Defined in: me-client/src/server.ts:315 (opens in a new tab)

A request's session: signed in, signed out, or not checkable right now. reason says why a token that verified is still signed out, or what can't be read.