Back

[SOLVED] How can trigger a function when an Anonymous user is created

  • 0
  • Flutter
  • Functions
0xb4d1dea
9 Mar, 2023, 04:57

i'll tried to trigger a function using users.*.create I need to get the userID to do some stuff

TL;DR
Solution: To trigger a function when an anonymous user is created, you can use the `users.*.sessions.*.create` endpoint to get the `userId`. This has worked for the person who posted the issue. If you're also interested in this solution, you can try using the same endpoint. If you encounter any issues, it's recommended to create an issue on the GitHub page mentioned above. One suggestion is to hook into the session create event and check for anonymous session creation. This might be helpful in achieving your goal. One user tried to trigger a function using `users.*.create`, but it's not clear if this
Drake
9 Mar, 2023, 05:03

You might want to create an issue for this.

For now, you might need to hook into the session create event and check for anonymous session creation

Camo
9 Mar, 2023, 09:06

if you do find a solution, please inform me, as i'm interested in this as well

0xb4d1dea
9 Mar, 2023, 09:41

Well, i'm use users.*.sessions.*.create and then get userId this works for me.

Drake
10 Mar, 2023, 19:14

[SOLVED] How can trigger a function when an Anonymous user is created

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more