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

HttpOptions

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

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