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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...