Skip to content

ActivityPlug API / @activityplug/session-postgres / PostgresOAuthStateStore

Class: PostgresOAuthStateStore ​

Defined in: oauth.ts:77

Implements ​

  • unknown

Constructors ​

Constructor ​

new PostgresOAuthStateStore(options): PostgresOAuthStateStore

Defined in: oauth.ts:83

Parameters ​

options ​

PostgresOAuthStateStoreOptions

Returns ​

PostgresOAuthStateStore

Methods ​

claim() ​

claim(stateHash, leaseUntil): Promise<any>

Defined in: oauth.ts:112

Parameters ​

stateHash ​

string

leaseUntil ​

string

Returns ​

Promise<any>


consume() ​

consume(claim): Promise<boolean>

Defined in: oauth.ts:238

Parameters ​

claim ​

OAuthStateClaim

Returns ​

Promise<boolean>


create() ​

create(record): Promise<boolean>

Defined in: oauth.ts:93

Parameters ​

record ​

OAuthStateRecord

Returns ​

Promise<boolean>


deleteExpired() ​

deleteExpired(now?, limit?): Promise<number>

Defined in: oauth.ts:282

Parameters ​

now? ​

Date

limit? ​

number

Returns ​

Promise<number>


release() ​

release(claim): Promise<boolean>

Defined in: oauth.ts:190

Parameters ​

claim ​

OAuthStateClaim

Returns ​

Promise<boolean>