Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

cookies and session in setupRoutes method of Server class #16

Open
fiorenzino opened this issue Mar 25, 2018 · 1 comment
Open

cookies and session in setupRoutes method of Server class #16

fiorenzino opened this issue Mar 25, 2018 · 1 comment

Comments

@fiorenzino
Copy link
Contributor

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.

@FroMage
Copy link
Owner

FroMage commented Mar 26, 2018

Yeah, this could be made optional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants