Using client cacheStorage API to safely store user data with NextAuth
Unanswered
Mountain Quail posted this in #help-forum
Mountain QuailOP
I'm building an email client and would like to cache user-specific data (messages) in the client's cache storage. This data should persist in the cache while the user's session is active. The data shouldn't also expire on reload. Once the user logs out or session expires, the data should wipe. What's the best way of doing this? Thanks! I'm currently using NextAuth for authentication.