Skip to content

Interface: AuthGateApi

The owning passwordless runtime exposed by AuthGatePlugin.exports.

  • PasswordlessAuthRuntime

readonly basePath: string

PasswordlessAuthRuntime.basePath


readonly passkeysEnabled: boolean

PasswordlessAuthRuntime.passkeysEnabled

close(): Promise<void>

Promise<void>

PasswordlessAuthRuntime.close


handler(request): Promise<Response>

Request

Promise<Response>

PasswordlessAuthRuntime.handler


isProtectedHost(headers): boolean

Whether these headers target a public host protected by this gate.

Headers

boolean


session(headers): Promise<string | undefined>

Headers

Promise<string | undefined>

PasswordlessAuthRuntime.session


status(headers): Promise<{ authenticated: boolean; email?: string; enabled: boolean; passkeysEnabled?: boolean; }>

Headers

Promise<{ authenticated: boolean; email?: string; enabled: boolean; passkeysEnabled?: boolean; }>

PasswordlessAuthRuntime.status