CF Worker, Hono, Htmx, picoCSS

Sign in

To test Jwt signing and middleware, login with:

  • Email: guest@demo.com
  • Password: demo-8592-45BC

  • Try logging in with invalid credentials (anything other than the demo creds above) and observe that HTML displays an error dialog with no coding required. Look at the source code for /pages/Login.tsx.
  • Without logging in, observe how clicking [401]in the menu above that links to a page secured with Jwt middleware, that you automatically get decent error dialog without any coding.
  • Login here, using correct crentials and see how you can now access the private page linked to from the [401] menu nav.
  • todo: I need to show or hide Login, Logout based on user logged in status in the Nav.