Skip to content

isLoggedIn always false #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YChebotaev opened this issue Apr 22, 2019 · 4 comments
Closed

isLoggedIn always false #7

YChebotaev opened this issue Apr 22, 2019 · 4 comments

Comments

@YChebotaev
Copy link
Contributor

YChebotaev commented Apr 22, 2019

After successfully confirm email with approach described here, I'm trying to log in.

Then, when I enter email and password and invoke loginUser with them, I expect to isLoggedIn to be true.

But isLoggedIn flag always returns false for me.

How I can overcome this obstacle?

@swyxio
Copy link
Contributor

swyxio commented Apr 22, 2019

something has to be up with your implementation. have you seen how the demo works? how does your implementation differ?

@YChebotaev
Copy link
Contributor Author

YChebotaev commented Apr 23, 2019

@sw-yx Your demo also not working properly: after page reload I lost all my authentication.

I'm enter in the URL section link to my service's URL and trying to log in. After successful log in I can see private part.

But after page reload I expect to continue see private part, but instead I see login form again.

@swyxio
Copy link
Contributor

swyxio commented Apr 23, 2019

yeah thats because i havent updated to use this: #2

should be a simple fix.

i'm sorry you're facing so much trouble - as the readme says this is not an official netlify project. even tho i'm a netlify employee i did this in my own time just because i'm a react fan. at this stage in the project's life i need people who can contribute their own bugfixes.

that said, i'm currently working on a new demo that uses react netlify identity. so this feedback -is- helpful and i will keep it in mind. i just dont want to promise i can solve your issue straight away esp when i can't see your repo.

@swyxio
Copy link
Contributor

swyxio commented Apr 24, 2019

hey @YChebotaev - so it was a simple error - i forgot to set the remember flag to true :) a8a8106

now if you go to https://netlify-gotrue-in-react.netlify.com/dashboard and login and refresh, it persists. sorry for the bad demo. but thanks for reporting the problem.

@swyxio swyxio closed this as completed Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants