In my application, users can only login via OAuth. I need to fire a function when they login for the first time to create some tables.
However, it seems that when a user logs in for the first time, appwrite does not recoginize this as a new registered user (see screenshot).
I tried to use the users.*.create
event.
Yes, this is a known issue: https://github.com/appwrite/appwrite/issues/2406
For now, I would suggest using the session create event instead
alright thx steven 🙏
[Solved] Fire function when user does his first oauth login.
Also when made through the appwrite console it's not being triggered
Hope a solution is found soon: https://github.com/appwrite/appwrite/pull/3567
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...