An example using Next.js 14 with Server Actions to sign a token and verify it natively. Besides, setting and reading cookies on the server and client side.
- install dependencies
yarn install
- start the server
yarn dev
-
open http://localhost:3000 in your browser
-
testing cookies http://localhost:3000/users?pag=10 where pag is the pagination number of users