Validating a token

The validation of tokens needs to be done on the server. Here is an example of how to do it with Next.js 13 App Router.

/app/page/login.{jsx,tsx}
/app/api/verify/route.{js,ts}

Check out Cloudflare official docs for more info about server side validation.