Replies: 4 comments
-
Typically, authentication tokens are stored in Local Storage and passed to the endpoints within the Authentication Header. Those tokens, though technically public, are only secure if the server can verify them. |
Beta Was this translation helpful? Give feedback.
-
This is a React/general web dev question and not a React question. It would be better to ask it on Stackoverflow with a React tag
|
Beta Was this translation helpful? Give feedback.
-
If you mean lighthouse in browser devtools you can uncheck the "Clear storage" |
Beta Was this translation helpful? Give feedback.
-
If you mean lighthouce CI you can read their documentation |
Beta Was this translation helpful? Give feedback.
-
Hi,
what is the best way to store authentication tokens..
Coz browsers are going to stop cookies .. so, where else can we store?
in .env file??
even I stored it in local-storage .. everything is fine but can't run lighthouse..as it flushes storage while generating report..
if storing in a js var then on refresh it will ask for log-in...
Regards,
Anjan
Beta Was this translation helpful? Give feedback.
All reactions