Appwrite Authentication for Logged in / out Users

Anyone that has experience with Appwrite? I have the basic sign up form and everything working and tested out the frontend and I see after a successful user sign-up the user is in fact sent to their dashboard correctly and Appwrite is adding the user just fine.

But now I am having difficulty with the Appwrite user authentication. After going through the docs and trying out several different setups I cannot seem to get Appwrite to authenticate and say "Yep, thats a logged in User alright'.

(part of my sign-up flow)

So i have created another API action that is called 'auth_check' and it is suppoed to confirm that person is logged in and provide back the logged in user details. But I keep getting the same error message from Appwrite: {"message":"User (role: guests) missing scope (account)","code":401,"type":"general_unauthorized_scope","version":"1.5.7"}

But I have full permissions on my one and only secret api key that i have with Appwrite for my specific project, and i checked all the other variables and confirmed them as well.

So i must be missing something in my headers or JSON Body I am assuming to pass onto Appwrite? I am hoping someone with Appwrite already setup to be able to answer this for me.

Thanks in advance.

Bummer... I see lots of Appwrite users from previous discussions, but nothing talking about how they are authenticating the user?

No one? :confused:

5 days and 74 views later, no one?

For ideas, have a look at