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

Interface: ISessionOptions

Properties

clientAuthentication

clientAuthentication: default

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

Defined in: node/src/Session.ts:70


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:55


onNewRefreshToken

Optional onNewRefreshToken: (newToken: string) => unknown

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

Type declaration

▸ (newToken: string): unknown

Parameters

Name

Type

newToken

string

Returns: unknown

Defined in: node/src/Session.ts:74

Defined in: node/src/Session.ts:74


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:46


sessionInfo

sessionInfo: ISessionInfo

Details about the current session

Defined in: node/src/Session.ts:66


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:62