F+Foldkit Plus
HomeLearnPackagesComponentsDemosGitHub ↗

Auth

Guides

foldkit-auth

  • Overview
  • Mental model
  • Sixty seconds
  • Who the client believes it is
  • Sync's socket
  • SSR's posted forms
  • Refusals

Auth and Guard

  • Overview
  • Which one owns what
  • The seam: one principal type
  • What the client sees
  • Failures, end to end
  • Keep these consistent

API

  • foldkit-auth
  • foldkit-auth/server

Open source, MIT
Foldkit 0.168 · Effect 4

Auth / foldkit-auth/server

Resolver

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

type Resolver<User, R> = (
  request: Request,
) => Effect.Effect<Option.Option<User>, RemoteUnauthenticated, R>

Who a request is: a visitor, someone, or refused.

Previousfoldkit-auth/server

Edit on GitHub ↗

This site is a Foldkit Plus application, rendered at build time with foldkit-ssr. Its source

FoldkitEffectGitHub