Skip to content

GuestPasses

Anonymous passes: “.”, the mac binds the pass to one scope (a public link, a lobby page). Nothing is stored.

new GuestPasses(secret): GuestPasses

string | Buffer<ArrayBufferLike>

GuestPasses

check(scope, value): string | null

The pass id (never the pass itself) when the value is a pass for this scope, else null.

string

string | undefined

string | null


issue(scope): string

string

string


static cookie(name, pass, path, secure, maxAgeSec?): string

The Set-Cookie value for a pass (HttpOnly, SameSite=Strict, limited to path).

string

string

string

boolean

number = ...

string


static defaultName(id): string

“Guest 4821”: a stable default name from a pass id.

string

string