Next.js Discord

Discord Forum

handling token

Unanswered
California Gull posted this in #help-forum
Open in Discord
California GullOP
I am very new to next and would like to know what's the secure possible way to store tokens? If we store it directly in a local storage or cookies then it'll be suspectable to certain security vulnerabilities. Then we have another option is to go with server side storage and save only the hash in the frontend cookie. And on each request in middleware we check if the token is valid only then through the request

0 Replies