Cookie and LocalStorage

Does Vaadin Flow 14 support cookies or LocalStorage?
I can’t find information anywhere. Found only everything that concerns Vaadin 8.

For example I want save JWT token

You can read cookies from the VaadinRequest:


You can write cookies into the next VaadinResponse:

Cookie myCookie = new Cookie("myCookie", "some value");
myCookie.setMaxAge(60 * 60 * 24 * 7 * 52); // define after how many *seconds* the cookie should expire
myCookie.setPath("/"); // single slash means the cookie is set for your whole application.

Before working on cookies please also refer below thread