const data = await ctx.modules.users.authenticateToken({ // Request body });
Validate a user token. Throws an error if the token is invalid.
userToken
string
fetchUser
boolean
userId
user
id
username
createdAt
Date
updatedAt