I have a ReactJS project that when I log in I save my token to local storage. How can I convert the token JWT to ab object and get id-user?
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NCwiZW1haWwiOiJhZG1pbkBnbWFpbC5jb20iLCJhdXRob3JpemF0aW9uIjoib3duZXIiLCJpYXQiOjE2NTQ5NDkxMjksImV4cCI6MTY1NDk1MjcyOX0.5e-KzJ0Rv3iWmY5MFtEGjRXZBJNlddiZ97X8pHJD03g