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
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...