Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

onAuthStateChanged  #87

@joshua1

Description

@joshua1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions