1.10.0 • Published 5 years ago
@panthera-errors/auth-validation v1.10.0
README
This is the list of custom errors of panthera platform
What is this repository for?
- This repo was created for handling custom errors for the platform
How do I get set up?
npm i @panthera-errors/custom-errors
Current user token validation middleware
import { currentUser } from '@panthera-errors/auth-validation';
- User Required auth middleware
import { requireAuth } from '@panthera-errors/auth-validation';