@inrupt/solid-client-authn-node / ISessionOptions

Interface: ISessionOptions

Table of contents

Properties

Methods

Properties

clientAuthentication

clientAuthentication: default

An instance of the library core. Typically obtained using getClientAuthenticationWithDependencies.

Defined in

node/src/Session.ts:72


insecureStorage

insecureStorage: IStorage

A storage where non-sensitive information may be stored, potentially longer-lived than the secure storage. This is deprecated in the NodeJS environment, since there is no issue getting a storage both private and persistent. If both insecureStorage and its intended replacement storage are set, insecureStorage will be ignored.

deprecated

Defined in

node/src/Session.ts:57


secureStorage

secureStorage: IStorage

A private storage, unreachable to other scripts on the page. Typically in-memory. This is deprecated in the NodeJS environment, since there is no issue getting a storage both private and persistent. If both secureStorage and its intended replacement storage are set, secureStorage will be ignored.

deprecated

Defined in

node/src/Session.ts:48


sessionInfo

sessionInfo: ISessionInfo

Details about the current session

Defined in

node/src/Session.ts:68


storage

storage: IStorage

A private storage where sensitive information may be stored, such as refresh tokens. The storage option aims at eventually replacing the legacy secureStorage and insecureStorage, which

since X.Y.Z

Defined in

node/src/Session.ts:64

Methods

onNewRefreshToken

Optional onNewRefreshToken(newToken): unknown

A callback that gets invoked whenever a new refresh token is obtained.

deprecated Prefer calling Session::onNewRefreshToken instead.

Parameters

Name

Type

newToken

string

Returns

unknown

Defined in

node/src/Session.ts:77