how can i get the user_id from jwt in the localstorage and use it in react?
I am writing a logic to create a post and i want to add the logged in user as the user making the post, i have saved the refresh token in my browser localstorage, when i copy the refresh token and paste in jwt.io, i get this response { "token_type": "refresh", "exp": 1679234275085, "iat": 1674953425085,… Read More how can i get the user_id from jwt in the localstorage and use it in react?