Skip to content
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

Authentication data not persisting to cookies, sign out not working #40

Closed
stubblsc opened this issue Nov 13, 2017 · 1 comment
Closed

Comments

@stubblsc
Copy link

stubblsc commented Nov 13, 2017

I'm using this in combination with devise_token_auth gem in react. Everything seems to work great except for 2 problems I'm having.

  1. Authentication is not persisting on page reload
    Login works fine and grabs the current user data, but I'm not seeing anything persisting to cookies in my browser so token verification fails on page reload

  2. Sign out is not working properly
    I've seen something about this possibly being a CORS issue but I've tried all the solutions that have previously been suggested and had no luck.

Any help on these would be greatly appreciated. I wasn't sure what would be helpful codewise to post, but if there's anything in particular or any more information that would help, I can post it.

Thanks!

@stubblsc
Copy link
Author

stubblsc commented Nov 16, 2017

#20 this fixed the persisting issue for me. was missing the "expose" portion. mistook it for the methods portion in the initializer

sign out was fixed by a syntax bug I needed to fix.

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

1 participant