Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/server / / AuthState

Type Alias: AuthState

ts
type AuthState = 
  | {
  kind: "unauthenticated";
}
  | {
  grantedScopes: ReadonlyArray<ParsedScope>;
  kind: "token";
  token: VerifiedToken;
}
  | {
  grantedScopes: ReadonlyArray<ParsedScope>;
  kind: "anonymous";
};

Defined in: packages/server/src/internal/context.ts:16

Stable

Discriminator for the request authentication state.