Auth / API

foldkit-auth/server

foldkit-auth/server: a Yielded Auth session as the principal a Foldkit Plus host answers as. A request's session cookie is verified with the application's own Auth service; what the session is in the application's terms (the guard set's principal, say) is the application's principal.

Namespaces

Interfaces

ResolverConfigWhat AuthServer.resolver takes.
VerifiedSessionThe part of a session this package reads; the application's principal reads the rest.

Types

HttpOptionsThe Http.make options this package reads: the same object, so the two agree.
ResolverWho a request is: a visitor, someone, or refused.
SessionVerifierThe Auth service of Auth.make(…), as far as this package uses it: verifying a credential outside Yielded's own HTTP middleware.