Auth / foldkit-auth/server

SessionVerifier

type · packages/auth/src/server.ts:21

type SessionVerifier<S extends VerifiedSession> = {
  readonly verifySession: (
    credential: Redacted.Redacted<string>,
  ) => Effect.Effect<S, Auth.SessionApiError>
}

The Auth service of Auth.make(…), as far as this package uses it: verifying a credential outside Yielded's own HTTP middleware.