You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually problem starting happening months ago and I didn't realize it. Focused on short fixes by moving $strapi.user to another store object and use it from there. Application works well beside page refreshing, in development mode I lose $strapi.user, in production it logs user out.
Tried modifying middleware to rely on strapi cookie instead of $strapi.user and it stopped logging me out.
But now I have strange behavior, which's is on page refresh, it doesn't log me out as cookie is still there, but some reason storage gets wiped in production, dev mode it works perfectly.
The text was updated successfully, but these errors were encountered:
Actually problem starting happening months ago and I didn't realize it. Focused on short fixes by moving
$strapi.user
to another store object and use it from there. Application works well beside page refreshing, in development mode I lose $strapi.user, in production it logs user out.Tried modifying middleware to rely on strapi cookie instead of
$strapi.user
and it stopped logging me out.But now I have strange behavior, which's is on page refresh, it doesn't log me out as cookie is still there, but some reason storage gets wiped in production, dev mode it works perfectly.
The text was updated successfully, but these errors were encountered: