Help with Next.js Login Implementation Using Cloudflare Pages and D1 Database

Is there a template i can follow i feel like my code is correct but my login functionality is not working correctly.
Was this page helpful?