https://github.com/GSG-G11/Blog-Post/blob/ce45315b37840c8aa2969b6711f4b4b90b2583ac/server/middleware/checkAuth.js#L7 I would say that While we are working with promise, It's a good practice to convert `jwt.verify` to promise then work with it.