Skip to main content

NhostReactClientConstructorParams

Parameters


refreshIntervalTime optional number

Time interval until token refreshes, in seconds


clientStorageType optional ClientStorageType

Define a way to get information about the refresh token and its exipration date.

@default

web


clientStorage optional ClientStorage

Object where the refresh token will be persisted and read locally.


clientStorageGetter optional StorageGetter

Deprecated

Use clientStorage / clientStorageType instead


clientStorageSetter optional StorageSetter

Define a way to set information about the refresh token and its exipration date.

Deprecated

Use clientStorage / clientStorageType instead


autoRefreshToken optional boolean

When set to true, will automatically refresh token before it expires


autoSignIn optional boolean

When set to true, will parse the url on startup to check if it contains a refresh token to start the session with


autoLogin optional boolean

Deprecated

@alias autoSignIn - use autoSignIn instead


backendUrl required string

Nhost backend URL.