FroMage / redpipe

Redpipe Web Framework
Apache License 2.0
70 stars 10 forks source link

cookies and session in setupRoutes method of Server class #16

Open fiorenzino opened 6 years ago

fiorenzino commented 6 years ago

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 commented 6 years ago

Yeah, this could be made optional.