Back

How should I handle my errors?

  • 0
  • Auth
  • Web
  • Cloud
CasDoorn
28 Jan, 2025, 22:56

I followed the following guide to setup a simple project with authentication: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 And Kenny gave me the middleware code, but how should i handle the errors like if user already exists etc. Current code: https://gitlab.com/CasDoorn/nextjs-appwrite-auth

TL;DR
Setup error handling in the authentication project based on the guide. Use the middleware code provided by Kenny to handle errors such as user already existing. Review the error-handling code on the GitLab repository.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more