NhostClient

Parameters


params required NhostNextClientConstructorParams

PropertyTypeRequiredNotes
params.adminSecretstringWhen set, the admin secret is sent as a header, x-hasura-admin-secret, for all requests to GraphQL, Storage, and Serverless Functions.
params.functionsUrlstring
params.storageUrlstring
params.graphqlUrlstring
params.authUrlstring
params.regionstringProject region (e.g. eu-central-1) Project region is not required during local development (when subdomain is localhost)
params.subdomainstringProject subdomain (e.g. ieingiwnginwnfnegqwvdqwdwq) Use localhost during local development
params.devToolsbooleanActivate devTools e.g. the ability to connect to the xstate inspector
params.autoSignInbooleanWhen set to true, will parse the url on startup to check if it contains a refresh token to start the session with
params.autoRefreshTokenbooleanWhen set to true, will automatically refresh token before it expires
params.refreshIntervalTimenumberTime interval until token refreshes, in seconds