mikenikles / your-analytics

Web analytics platform. Open source, privacy-focused and simple.
https://your-analytics.org
40 stars 8 forks source link

[BUG] The `user` is not updated in the session #223

Closed mikenikles closed 4 years ago

mikenikles commented 4 years ago

Describe the bug When a new user signs up and adds their first name and first website, or when an existing user adds a new website, the jwt cookie which contains the user information is not updated.

This means, /websites does not display the new website. Also, the new website does not show up on the dashboard website selector. The first name is undefined.

To Reproduce Steps to reproduce the behavior:

  1. Sign in with an existing user
  2. Onboard a new website
  3. Navigate to /websites
  4. The new website is missing

Expected behavior Whenever the user object changes, the server needs to issue a new jwt cookie.

Screenshots - Optional N/A

Desktop (please complete the following information) - Optional: All

Smartphone (please complete the following information) - Optional: All

Additional context - Optional N/A