-
Notifications
You must be signed in to change notification settings - Fork 81
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
Why isnt expire set in useStrapiToken and setToken in useStrapiAuth? #364
Comments
OK I just noticed that i can define the maxAge of the cookie in nuxt config. Now my cookie does get a expire date but on Page reload the cookie is gone |
I'm having this issue as well. Doesn't matter what I do, something is deleting the cookie. If I change the name of the cookie before a refresh it stays, so that rules out anything having to do with the cookie itself. |
Ahh this appears to have been fixed in #354 |
Does this work for you? The Nuxt Module didnt work out for me, no matter what hostname the cookie gets. When I changed the domain name from the to cookie from 'domain.com' to '.domain.com' the cookie stayed persitent. |
idk if that helps someone. All I change was how the cookie is set + Remember me Function
|
This is how my auth middleware looks like:
|
No Expire Date set when setting auth Cookie (strapi_jwt)
My Problem is that the cookie is gone after Reloading the Page because the Cookie expires on Session
The token is getting fetched in useStrapiAuth
And then set in setToken
But only the value is asigned
Also in useStrapiToken only the name and value is set but no expires:
The text was updated successfully, but these errors were encountered: