joi-jwt
Lead Maintainer: Roman Rodomansky
Joi extensions for JWT Token rules.
Installation
yarn add joi-jwt --save
Usage
const JoiBase = ;const Joi = JoiBase; const schema = Joi; const token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzaXRlIjoiaHR0cHM6Ly9yYWxhYnMub3JnIiwiaWF0IjoxNTU1Njk5Njg5fQ.1-YemibEH2bC7EqoQtG2naPRui0MP8Ma-Y5mAKYoJDU'; const result = schema;console;