const data = await ctx.modules.tokens.validate({ // Request body });
Validate a token. Throws an error if the token is invalid.
token
string
id
type
meta
any
createdAt
expireAt
revokedAt