Skip to main content

NhostClient

Nhost Client

Parameters


__namedParameters required NhostClientConstructorParams

PropertyTypeRequiredNotes
__namedParameters.backendUrlstring✔️Nhost backend URL.
__namedParameters.autoLogin ⚠️boolean
__namedParameters.startboolean
__namedParameters.autoSignInbooleanWhen set to true, will parse the url on startup to check if it contains a refresh token to start the session with
__namedParameters.autoRefreshTokenbooleanWhen set to true, will automatically refresh token before it expires
__namedParameters.clientStorageSetter ⚠️StorageSetterDefine a way to set information about the refresh token and its exipration date.
__namedParameters.clientStorageGetter ⚠️StorageGetter
__namedParameters.clientStorageClientStorageObject where the refresh token will be persisted and read locally.
__namedParameters.clientStorageTypeClientStorageTypeDefine a way to get information about the refresh token and its exipration date.
__namedParameters.refreshIntervalTimenumberTime interval until token refreshes, in seconds