You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2022. It is now read-only.
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 callback function as the parameter for onAuthStateChanged function (or at the very least user and session) and when the user is logged out, this object can be null, as we apply the same logic in both cases (update user details in-store and in some cases fetch user-related data). Currently, onAuthStateChange only returns a boolean value to the callback function as a parameter. It is only useful when that value is false. When Auth State changes, that State information whatever it is should be returned