K_VasenOriginal post
Rank 1: Thread
I am using svelte with appwrite to get the user. I wrote a svelte store to subscribe to realtime connection with following events. user.${userId}.session.*. Does it equivalent to firebase OnAuthChanged hook.? I want userStore to be updated whenever the realtime channel with given event is fired.
Summary
The user wants to know if there's a functionality similar to Firebase's onAuthChanged in Appwrite. They mention using the Appwrite SDK, and currently call `account.get()` and store the result on app start and clear the user state on logout. They are using Svelte and have written a Svelte store to subscribe to a realtime connection with specific events, but want to know if it is equivalent to Firebase's onAuthChanged.