No description provided.
NhostReactClientConstructorParams
string
When set, the admin secret is sent as a header, x-hasura-admin-secret
,
for all requests to GraphQL, Storage, and Serverless Functions.
string
string
string
string
string
Project region (e.g. eu-central-1
)
Project region is not required during local development (when subdomain
is localhost
)
string
Project subdomain (e.g. ieingiwnginwnfnegqwvdqwdwq
)
Use localhost
during local development
boolean
Activate devTools e.g. the ability to connect to the xstate inspector
boolean
When set to true, will parse the url on startup to check if it contains a refresh token to start the session with
boolean
When set to true, will automatically refresh token before it expires
ClientStorage
Object where the refresh token will be persisted and read locally.
Recommended values:
'web'
and 'cookies'
: no value is required
'react-native'
: use @react-native-async-storage/async-storage
'custom'
: an object that defines the following methods:
setItem
or setItemAsync
getItem
or getItemAsync
removeItem
'capacitor'
:
'expo-secure-store'
: use expo-secure-store
ClientStorageType
Define a way to get information about the refresh token and its exipration date.
@default
web
number
Time interval until token refreshes, in seconds