![](https://cdn.discordapp.com/embed/avatars/3.png)
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
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
What is not working? Login? Signup?
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
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.
![](https://cdn.discordapp.com/embed/avatars/3.png)
whenever the getCurrentUser() method on the signup page is called it gives an appwrite exception of invalid URL
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
Do you have that error/stack trace, you could post?
![](https://cdn.discordapp.com/embed/avatars/3.png)
yes sure
![](https://cdn.discordapp.com/embed/avatars/3.png)
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
Neither of those say invalid URL
![](https://cdn.discordapp.com/embed/avatars/3.png)
yes sir it is showing missing scope
![](https://cdn.discordapp.com/embed/avatars/3.png)
I wrote invalid URL by mistake earlier
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
At what point are you called getCurrentUser?
![](https://cdn.discordapp.com/embed/avatars/3.png)
while sending the signup data to the backend
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
What does userData on line 19 return?
![](https://cdn.discordapp.com/embed/avatars/3.png)
sir I tried to console it but it is not returning anything. Ideally it should be returning an object with user's data
![](https://cdn.discordapp.com/embed/avatars/3.png)
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
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
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
and post those
![](https://cdn.discordapp.com/embed/avatars/3.png)
yes sir
![](https://cdn.discordapp.com/avatars/186656408450629633/a_1020a50ae94486c09c02e2868564778d.gif)
I'm not seeing any outputs from either of those logs, is the singup function being called?
Recommended threads
- How to access the Google account profile...
This is the response we get while logging in with google oauth2 client but It doesn't have the option for Google account profile photo
- GET https://cloud.appwrite.io/v1/account...
create project, create sdk , set the hostname to localhost , give the database as well as storage permission to th user still giving the error
- How can I check whether the current user...
How can I check whether the current user is logged in to OAuth2-Discord? Unfortunately, I don't understand the Appwrite documentation very well and am relative...
![](/images/bgs/pre-footer.png)