@prismshadow/penguin-library-auth · library/auth/src/service.ts:22

AuthConfig

interface

The auth session's settings (the server's Config capability satisfies it).

API

@Interface()
export abstract class AuthConfig {
  abstract seedAdminPassword: string | null;
  abstract authSessionTtlMs: number;
  abstract authSessionRenewMs: number;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Useconsumed by (1)

Members (3)

seedAdminPassword

seedAdminPassword: string | null

Fixed initial password for the seeded admin; null generates a random one at seed time.

authSessionTtlMs

authSessionTtlMs: number

Session lifetime, for the cookie that must expire WITH the session, not before it.

authSessionRenewMs

authSessionRenewMs: number

The window a session's own span must reach before its use slides the expiry.