
Hello guys, I hope you can help me. When I register a user with google auth and then save that user in a collection called users; a document is created twice.
what is the flow like: I have a Google button, when clicked it registers the user in auth appwrite normally. After that, in this case, it redirects me to the dashboard and there I execute a use effect to obtain the session, validate that the user exists and after that I use .createDocument to save that user in a collection.
The funny thing is that it only happens when a user registers with their Google account, if they register with normal without providers, it only creates a single document
I appreciate your suggestions
Recommended threads
- Relationship problem
When I UPDATE a document that has a relationship and I pass id and all the data of the relationship it works but if i CREATE a document then it says 401 user un...
- How many functions can I run simultaneou...
I want to konw, how many functions can I can simultaneously in appwrite cloud? I want to make a chat app where user sends text and text is processed using funct...
- security question
hello i got a small question, is this code secured, is there something that should not be displayed on the client, i am talking about the image tag: my code: ...
