Back

Authentication Issues

  • 0
  • Auth
  • Web
  • Cloud
Dom Cogan
19 Mar, 2024, 14:33

Hello so im new to appwrite and newer to qwik. Ive spent the last 4 years developing in flutter and firebase. Decided I wanted to get away from firebase and to lean a new language at the same time. I choose appwrite because it seemed like its a lot easier and i love the open-ness. All this being said I just spent the last 4 hours trying to debug why i couldn't create a new user. WOW yeah turns out you do infact need to make sure when you pass the props they are in this order[ ID.unique(),user.email, user.password, user.name ]... yeah thats kina annoying but ok. I then got the log in button working... So progress. Long Intro sorry, just wanted to set my mind set. This leads me to my current issue. How do i detect if the user is logged in or not? Like i have a "side menu" and for example i want it to show a log in button if the user is not logged in but maybe a log out and a profiles button if they logged in? I looked this up online and I've seen several different answers but these all seem to be for React type website and Qwik is not react based. I looked it up on the YouTube but got SSR auth which maybe be it but I'm having a hard time implementing this.

NOTE: The Sign in form is shown with 3 images that file is 114 lines long.

TL;DR
Developing in Flutter and Firebase for 4 years, developer switched to Appwrite for open nature. Initial issue with creating new user - props order mattered. Solved login button issue. Current problem is detecting user login status for side menu buttons display. Struggling to implement SSR auth like in YouTube tutorials for React, as Qwik isn't React-based. Sign-in form shown with 3 images, 114 lines long.
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