-
Notifications
You must be signed in to change notification settings - Fork 262
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
Couldn't load authHeaders in client-side rendering #47
Comments
That's what I did. Don't know if it's the 'right' way to do it, but it functions well. I added this piece of code in
Then inside
Just to note, I had to change the default settings of storage from 'cookies' to 'localStorage' in
It's a bit hacky, and there are some things i hard coded (like the 'default' argument being passed into getTokenValidationPath ), but it works like a charm so far. |
Thanks @nyjy85 ! The solution works like a charm. I also tested the pull request #50 by @jlonardi, and it works perfectly as well. @lynndylanhurley, you may consider to merge #50. |
I'm looking into a way to keep user session alive so that user doesn't have to login again next time visiting the site. My site is using client-side rendering. After tracing the code, I figured out that there might be a chance to load session from localStorage to accomplish the goal. I'm not sure if this a good way and would like to get some feedback here.
In action/configure.js
The text was updated successfully, but these errors were encountered: