nhost-js-sdk
nhost-js-sdk copied to clipboard
Nhost JS SDK to handle Auth and Storage with Nhost.
I spend some time trying to get this right. Here are my findings: 1. You need to set `useCookies` setup parameter to true, by default is false. 2. `Auth.refreshSession` public...
using the nhost-js-sdk, when auth.login is called, an object is returned on successful login containing the Session, user, and MFA properties. This should be the same object passed to the...
Hi @elitan , I think it would be nice to have the public methods of this api return an object of {T,Error} , or a tuple of [T,Error] like you...
Hi, using revisions 3.0.0 to 3.1.1-0, after log in, if a user refreshes the page `/refresh_token` will be called twice, causing the second call to return a 401. Also, `onAuthStateChanged`...
Hi, Does `nhost-js-sdk` support refreshing JWTs across multiple tabs? When I've got more than one tab open on my app it seems to log itself out constantly and I believe...
Hello! Thank you for the SDK and the hasura-backend-plus project, this has made writing new applications for user management sure simple. I was wondering how errors are handled when using...
**Issue** Auth.js sets a long timer like this ``` JWTExpiresIn = session.jwt_expires_in; refreshIntervalTime = this.refreshIntervalTime ? this.refreshIntervalTime : Math.max(30 * 1000, JWTExpiresIn - 45000); this.refreshInterval = setInterval(this._refreshToken.bind(this), refreshIntervalTime); ``` To...
I have an edge case in React Native where when a notification is clicked by a user, that navigates quickly to a specific screen, then if the app is backgrounded...
Hello, ```ts import nhost from 'nhost-js-sdk' console.log(nhost) //
We should set Github Actions up for this repository to test our changes.