Next.js Discord

Discord Forum

syncing a value between accounts using jwt and database

Unanswered
Sage Thrasher posted this in #help-forum
Open in Discord
Sage ThrasherOP
I'm switching from a database strategy to jwt + database (but jwt as the strategy) however I have a property nsfwFilter which was synced between devices for the user as it was retrieving the session from the database, however I need to switch to JWT due to ratelimiting issues with the database and that it's significantly slowing down the website.

When a user changes this value, how could I sync it between the user's devices? Currently it's stored in the cookie with the rest of the user data

1 Reply

Sage ThrasherOP
anyone have any ideas?