Interface: AuthGateApi
The owning passwordless runtime exposed by AuthGatePlugin.exports.
Extends
Section titled “Extends”PasswordlessAuthRuntime
Properties
Section titled “Properties”basePath
Section titled “basePath”
readonlybasePath:string
Inherited from
Section titled “Inherited from”PasswordlessAuthRuntime.basePath
passkeysEnabled
Section titled “passkeysEnabled”
readonlypasskeysEnabled:boolean
Inherited from
Section titled “Inherited from”PasswordlessAuthRuntime.passkeysEnabled
Methods
Section titled “Methods”close()
Section titled “close()”close():
Promise<void>
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”PasswordlessAuthRuntime.close
handler()
Section titled “handler()”handler(
request):Promise<Response>
Parameters
Section titled “Parameters”request
Section titled “request”Request
Returns
Section titled “Returns”Promise<Response>
Inherited from
Section titled “Inherited from”PasswordlessAuthRuntime.handler
isProtectedHost()
Section titled “isProtectedHost()”isProtectedHost(
headers):boolean
Whether these headers target a public host protected by this gate.
Parameters
Section titled “Parameters”headers
Section titled “headers”Headers
Returns
Section titled “Returns”boolean
session()
Section titled “session()”session(
headers):Promise<string|undefined>
Parameters
Section titled “Parameters”headers
Section titled “headers”Headers
Returns
Section titled “Returns”Promise<string | undefined>
Inherited from
Section titled “Inherited from”PasswordlessAuthRuntime.session
status()
Section titled “status()”status(
headers):Promise<{authenticated:boolean;email?:string;enabled:boolean;passkeysEnabled?:boolean; }>
Parameters
Section titled “Parameters”headers
Section titled “headers”Headers
Returns
Section titled “Returns”Promise<{ authenticated: boolean; email?: string; enabled: boolean; passkeysEnabled?: boolean; }>
Inherited from
Section titled “Inherited from”PasswordlessAuthRuntime.status