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

HttpOptions

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

type HttpOptions = Pick<
  Http.AuthHttpOptions,
  'origin' | 'trustedOrigins' | 'cookie' | 'csrf'
>

The Http.make options this package reads: the same object, so the two agree.

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