Patch Changes
- 58fa2a2: Improve loading status
Theloading
status indicates the authentication is not yet known to the client when it starts. Once the client is ready, the authentication status is either signed in, or signed out.
When the user was trying to authenticate, theloading
status was set totrue
until the result of the authentication was known.
The client now only returnloading: true
on startup, and in no other cases. - 58fa2a2: Look for a valid refresh token both the URL and local storage
When auto-signin was activated, the client was not taking into account the refresh token in the URL if a token was already stored locally.
The user was then not able to authenticate from a link when the refresh token stored locally was invalid or expired.
When auto-signin is activated, the client now checks and tries tokens from both the URL and the local storage, starting with the URL. - Updated dependencies [58fa2a2]
- Updated dependencies [58fa2a2]
- @nhost/react@0.7.1
- @nhost/nhost-js@1.1.8