Auth
HasuraAuthClient
No description provided.
HasuraAuthClient
Parameters
__namedParameters required NhostAuthConstructorParams
Property | Type | Required | Notes |
---|---|---|---|
__namedParameters.url | string | ✔️ | |
__namedParameters.devTools | boolean | Activate devTools e.g. the ability to connect to the xstate inspector | |
__namedParameters.autoSignIn | boolean | When set to true, will parse the url on startup to check if it contains a refresh token to start the session with | |
__namedParameters.autoRefreshToken | boolean | When set to true, will automatically refresh token before it expires | |
__namedParameters.clientStorage | ClientStorage | Object where the refresh token will be persisted and read locally. | |
__namedParameters.clientStorageType | ClientStorageType | Define a way to get information about the refresh token and its exipration date. | |
__namedParameters.refreshIntervalTime | number | Time interval until token refreshes, in seconds | |
__namedParameters.start | boolean |