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
- Issue with relations on database
I'm creating a food ordering website for businesses. I'm having issues with the relations on my database I attached the attributes for the collections I'm hav...
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...