Documentation / @u-net/server / PostgresDirectLoginChallengeStore
Class: PostgresDirectLoginChallengeStore
Defined in: directLoginPostgres.ts:68
Implements
Constructors
Constructor
new PostgresDirectLoginChallengeStore(
db):PostgresDirectLoginChallengeStore
Defined in: directLoginPostgres.ts:69
Parameters
db
Returns
PostgresDirectLoginChallengeStore
Methods
approve()
approve(
record,_nowIso):Promise<void>
Defined in: directLoginPostgres.ts:87
Atomically bind the account key and transition exactly one pending challenge.
Parameters
record
_nowIso
string
Returns
Promise<void>
Implementation of
DirectLoginChallengeStore.approve
browserAccess()
browserAccess(
requestRef,challenge,_nowIso,consume):Promise<DirectLoginBrowserResult>
Defined in: directLoginPostgres.ts:110
Atomically authenticate, bound attempts, and optionally consume an approval.
Parameters
requestRef
string
challenge
string
_nowIso
string
consume
boolean
Returns
Promise<DirectLoginBrowserResult>
Implementation of
DirectLoginChallengeStore.browserAccess
create()
create(
record):Promise<void>
Defined in: directLoginPostgres.ts:71
Parameters
record
Returns
Promise<void>
Implementation of
DirectLoginChallengeStore.create
get()
get(
requestRef):Promise<DirectLoginChallengeRecord|undefined>
Defined in: directLoginPostgres.ts:79
Parameters
requestRef
string
Returns
Promise<DirectLoginChallengeRecord | undefined>