Get profile details from login user jwt token react js
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rijwan AnsariRank #82 · 24.2K reputationPosted Jul 6, 2021, 7:26 AM EDT
HI,
You cannot get login user from token only, you need validate token in backend and return user details in respose or header from backend. Then you can read header or response details for user.