In the setupRoutes method you force the creation of cookies:
router.route().handler(CookieHandler.create());
and the use of session:
SessionHandler sessionHandler = SessionHandler.create(LocalSessionStore.create(vertx));
Why?
If you use only json web token (JWT) - i.e. in angular applications - you don't need cookies and session.
In the setupRoutes method you force the creation of cookies: router.route().handler(CookieHandler.create()); and the use of session: SessionHandler sessionHandler = SessionHandler.create(LocalSessionStore.create(vertx));
Why?
If you use only json web token (JWT) - i.e. in angular applications - you don't need cookies and session.