In this code we will create a three handlers
-> Login Handler: Which checks for user login and generates the JWT token.
-> Home Handler: This Page loading is succeded if JWT token is valid.
-> Refresh Handler: This handler is used to regenerate the token at last 30 secs expiring time of live token.
JSON Web Tokens(JWT) are an open, industry standard RFC 7519 method for representing claims securely between two parties (Read more here https://jwt.io/introduction).