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
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...