Slackbot
08/17/2022, 3:47 PMRaphael Etim
08/17/2022, 4:03 PMdecoded["userId"] returns an object that contains an id . You might want to pull out the id from that object.
for example:
const {id: userId } = decoded["userId"];
then go ahead with
const currentUser = await getUser(userId);