redpipe
redpipe copied to clipboard
cookies and session in setupRoutes method of Server class
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.
Yeah, this could be made optional.