This message was deleted.
# orm-help
s
This message was deleted.
r
Hi @Arpit Satyal 👋 I suspect that
decoded["userId"]
returns an object that contains an
id
. You might want to pull out the id from that object. for example:
Copy code
const {id: userId } = decoded["userId"];
then go ahead with
Copy code
const currentUser = await getUser(userId);