AccountsSession

@accounts/express-sessionGlobalsAccountsSession

Hierarchy

  • AccountsSession

Index

Constructors

Methods

Constructors

constructor

+ new AccountsSession(accountsServer: AccountsServer, options?: AccountsSessionOptions): AccountsSession

Defined in index.ts:18

Parameters:

NameType
accountsServerAccountsServer
options?AccountsSessionOptions

Returns: AccountsSession

Methods

clear

clear(req: Request): void

Defined in index.ts:112

Parameters:

NameType
reqRequest

Returns: void


destroy

destroy(req: Request): Promise‹void›

Defined in index.ts:56

Parameters:

NameType
reqRequest

Returns: Promise‹void›


get

get(req?: Request): Tokens | undefined

Defined in index.ts:75

Parameters:

NameType
req?Request

Returns: Tokens | undefined


middleware

middleware(): (Anonymous function)

Defined in index.ts:33

Returns: (Anonymous function)


renew

renew(req: Request): Promise‹LoginResult | undefined›

Defined in index.ts:85

Parameters:

NameType
reqRequest

Returns: Promise‹LoginResult | undefined›


set

set(req: Request, tokens: Tokens): void

Defined in index.ts:101

Parameters:

NameType
reqRequest
tokensTokens

Returns: void