DEV Community

Discussion on: How to make nuxt auth working with JWT - a definitive guide

Collapse
 
mrnaif2018 profile image
MrNaif2018

Hello! You should implement something like /users/me in your backend to just return current user. Unless you JWT token has user id in, it is impossible to fetch that endpoint as it fetches user data(with user id in it).