F+Foldkit Plus
HomeLearnPackagesComponentsPrimitivesDemosBlogGitHub ↗

Auth

Guides

foldkit-auth

  • Overview
  • What foldkit-auth owns
  • How a request is verified
  • Who the client believes it is
  • Sync's socket
  • SSR's posted forms
  • SSR's page reads
  • One host: AuthServer.host
  • Refusals
  • On Workers with D1
  • Signing up

Auth and Guard

  • Overview
  • How Auth and Guard split responsibility
  • Sharing one principal type across client and server
  • Drawing capabilities and handling refusals in the browser
  • Failure scenarios end to end
  • Keep keys, fresh lookups, and hosts aligned

API

  • foldkit-auth
  • foldkit-auth/server

Open source, MIT
Foldkit 0.170 · Effect 4

Auth / foldkit-auth/server

Resolver

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

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

Menu

HomeLearnPackagesComponentsPrimitivesDemosBlogGitHub ↗

Auth

Guides

foldkit-auth
  • Overview
  • What foldkit-auth owns
  • How a request is verified
  • Who the client believes it is
  • Sync's socket
  • SSR's posted forms
  • SSR's page reads
  • One host: AuthServer.host
  • Refusals
  • On Workers with D1
  • Signing up
Auth and Guard
  • Overview
  • How Auth and Guard split responsibility
  • Sharing one principal type across client and server
  • Drawing capabilities and handling refusals in the browser
  • Failure scenarios end to end
  • Keep keys, fresh lookups, and hosts aligned

API

  • foldkit-auth
  • foldkit-auth/server

Open source, MIT
Foldkit 0.170 · Effect 4