Skip to content

Documentation


Documentation / @u-net/server / PostgresDirectLoginAccountStore

Class: PostgresDirectLoginAccountStore

Defined in: directLoginPostgres.ts:79

Implements

Constructors

Constructor

new PostgresDirectLoginAccountStore(db): PostgresDirectLoginAccountStore

Defined in: directLoginPostgres.ts:80

Parameters

db

SqlClient

Returns

PostgresDirectLoginAccountStore

Methods

bindPublicKey()

bindPublicKey(scopedUserId, publicKeyPem): Promise<"created" | "existing">

Defined in: directLoginPostgres.ts:90

Parameters

scopedUserId

string

publicKeyPem

string

Returns

Promise<"created" | "existing">

Implementation of

DirectLoginAccountStore.bindPublicKey


getPublicKey()

getPublicKey(scopedUserId): Promise<string | undefined>

Defined in: directLoginPostgres.ts:82

Parameters

scopedUserId

string

Returns

Promise<string | undefined>

Implementation of

DirectLoginAccountStore.getPublicKey


retire()

retire(scopedUserId): Promise<void>

Defined in: directLoginPostgres.ts:107

Parameters

scopedUserId

string

Returns

Promise<void>

Implementation of

DirectLoginAccountStore.retire