Storing 2 values outside of a nuxt scope
Hey, I have a small class that does some fetching which I placed into lib/Fetcher.ts.
While the code itself works, I want to store an access token and an expiration time, so I am not flooding the API with unncessary auth requests.
this is my code: https://paste.teamhelios.dev/JKOl2pQb6X, and the problem parts are in line 1 and 2, it appears they are actually not saved (which kinda makes sense)
Does anyone have an Idea how to properly do this? or maybe I have a wrong approach to begin with?
0 Replies