https://medium.com/@rameshkannanyt0078/implementing-middleware-for-protected-routes-in-next-js-using-jwt-authentication-db86a5d71434