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

Interface: ISessionOptions

Properties

clientAuthentication

clientAuthentication: default

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


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


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


sessionInfo

sessionInfo: ISessionInfo

Details about the current session


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

Methods

onNewRefreshToken

Optional onNewRefreshToken(newToken): unknown

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

Parameters

Name

Type

newToken

string

Returns

unknown