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.
The Appwrite SDK works differently than the firebase SDK so it does not have an onAuthChanged hook.
usually, it's not needed. I call account.get() and store the result on app start and then i clear the user state on logout.
Recommended threads
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Get Started - Web is broken
Trying to complete the get started tasks since the "66%" was finally getting to me, and clicked on "web", was met with: ``` Uncaught TypeError: Cannot read prop...