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:

VaadinRequest.getCurrent().getCookies()

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.
VaadinService.getCurrentResponse().addCookie(myCookie);

Before working on cookies please also refer below thread

https://vaadin.com/forum/thread/18124830/issue-in-vaadin-while-using-in-embeded