RESULT: ''

Rules for this example

- Look for the '/login' PUT request in the network tab of your browser (developer tools) to see how it works.

- After 30 seconds of inactivity (without reloading the page or navigating to other routes), the cookie will expire.

- If you navigate to other routes or reload the page (GET requests), and the cookie has expired, the middleware will generate a new cookie.

- You can also generate a new cookie programmatically.

💻 GitHub