I am unable to implement login signup functionality when the data is sent to the backend it doesn't return the currentUser.I am attaching the bug and the code of the Auth file for reference. It would be of great help if somebody could look into it and find the error. @Dennis Ivy
What is not working? Login? Signup?
Also you should look into code formatting, having everything left aligned like that makes it far harder to read than if you have it indented and formatted correctly.
whenever the getCurrentUser() method on the signup page is called it gives an appwrite exception of invalid URL
Do you have that error/stack trace, you could post?
yes sure
Neither of those say invalid URL
yes sir it is showing missing scope
I wrote invalid URL by mistake earlier
At what point are you called getCurrentUser?
while sending the signup data to the backend
What does userData on line 19 return?
sir I tried to console it but it is not returning anything. Ideally it should be returning an object with user's data
I think your issue is with the createAccount function. Can you log the output of userAccount on line 15 in auth.js, and log the error in the catch block of that same function
and post those
yes sir
I'm not seeing any outputs from either of those logs, is the singup function being called?
Recommended threads
- Login via GitHub Student Developer Pack ...
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...
- [SOLVED] How many projects can I make?
I have a GitHub education plan and am using Appwrite with the same plan. How many projects can I make with the Appwrite GitHub Education?