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

VerifiedSession

interface · packages/auth/src/server.ts:15

interface VerifiedSession {
  readonly subjectId: string
}

The part of a session this package reads; the application's principal reads the rest.

Members

VerifiedSession.subjectId#

property · packages/auth/src/server.ts:16

readonly subjectId: string
Previousfoldkit-auth/server

On this page

  • subjectId

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