Skip to content

Remove isLoggedIn and use variant with user payload instead #8

@MargaretKrutikova

Description

@MargaretKrutikova

According to the source code of react-netlify-identity isLoggedIn is derived from the user object (https://github.com/sw-yx/react-netlify-identity/blob/master/src/index.tsx#L353) which means it should be mapped to a variant in reason. Smth like this:

type t('a) =
  | Anonymous
  | LoggedInUser(NetlifyUser.t('a));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions