DEV Community

Discussion on: How to authenticate and protect REST API routes with JWT and refresh tokens

Collapse
 
renzhamin profile image
renzhamin • Edited

I used the function tokenVerifier.validateAccessToken defined in utils/verifyToken.ts which uses jwt.verify().