Auth / foldkit-auth/server
YieldedAuth
type · packages/auth/src/server.ts:181
type YieldedAuth<I, S extends Sessions.SessionMetadata, Api, Actions> = Omit<
Context.Key<I, Api>,
typeof Unify.unifySymbol
> & {
readonly sessions: {
readonly moduleId: string
readonly Session: Schema.Codec<S, unknown, unknown, unknown>
}
readonly contract: {
readonly basePath?: string
readonly actions: Actions
}
readonly layer: Layer.Layer<I, unknown, unknown>
}The Yielded application Http.make mounts (Auth.make(…)), typed as far
as AuthServer.host reads it.