Back

Sign up not working

  • 0
  • Apple
  • Cloud
Leon
26 Feb, 2025, 17:27

For some reason when I try and sign up, it does add a new user but for some reason when I run checkUser it just doesn't work?

TL;DR
Sign-up not working, error message: "Sign-up successful. Now signing in... No session: User (role: guests) missing scope (account)". Make sure to use the same AppwriteAuth instance across all view models.
Leon
26 Feb, 2025, 17:27

The error I get is: Sign-up successful. Now signing in... No session: User (role: guests) missing scope (account)

Steven
26 Feb, 2025, 17:39

are you using the same AppwriteAuth instance across all your view models?

Steven
26 Feb, 2025, 17:41

I see the same auth instance used in ContentView, AuthViewModel, and SignInView, but what about SignUpViewModel?

Leon
26 Feb, 2025, 17:49

For the SignUpView/SignUpViewModel, I use NavigationLink("Sign up", destination: SignUpView(auth: auth)) so it's being passed down from the SignInView.

Steven
26 Feb, 2025, 17:56

You said the user is created. Do you see the session created too?

Also, what version of the apple sdk do you have?

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