Skip to content

The user is undefined after a page refresh. #1

Closed
@michalczaplinski

Description

@michalczaplinski

A page refresh logs a user out. This behaviour can be seen in the example linked in the README.

To reproduce:

Go to https://netlify-gotrue-in-react.netlify.com/

I can log in by providing by the url to my identity service: https://dropclub.netlify.com

After logging in I'm redirected to /dashboard. Then, when I refresh the page I am redirected back to the login page and I can see that user is undefined in the console.

I was under the impression that gotrue-js should be storing the user information in localStorage for me. Is this functionality outside of the scope of this package or would you expect it to work?

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