how to use and process token that i get after authentication is complete?

Description: First time creating MERN authentication I've created basic user login page with username and password if both matches it returns token which has setout time Questions and issue: How to use this token do I need to store this token on mongodb user database? if storing is possible do I need to update token every time if user signout and sign in again? what should I store in cookie and how I can decode this token?
0 Replies
No replies yetBe the first to reply to this messageJoin