API Tokens Security | Sololearn: Learn to code for FREE!


API Tokens Security

How to store API Tokens securely at Front-end Cookies and Local Storage are not safe for CSRF attacks. Recommend me best solution for secure API Tokens at Front-end.

3/28/2021 12:46:11 PM

Shahghasi Adil

4 Answers

New Answer


Use dotenv package


Ɗeⱥᖙpͥooͣlͫツ جوردن آهو ماولی(JAM) dotenv is for hiding keys I need to hide token


Maybe it helps: https://stackoverflow.com/questions/52444630/is-there-a-way-to-secure-an-api-key-on-a-frontend-page


Once when I was watching YT channel of Microsoft Developers they too suggested dotenv package