Jason Creviston
Jason Creviston
Yes, you're correct. Not sure when the docs will reflect this - or if there are plans to include `error` in the returned object, but you can contribute to the...
Just FYI, if this is considered, I think it might make more sense to use an id instead of a class. I went ahead and changed my setup to reflect...
I believe others are using rn-nodeify to fix this. https://www.npmjs.com/package/rn-nodeify
There is no code which notifies of a USER_DELETED event. To my knowledge, nothing done with the GoTrueAdminApi triggers `onAuthStateChange` events - only GoTrueClient. The type doc [here](https://github.com/supabase/gotrue-js/blob/d7b334a4283027c65814aa81715ffead262f0bfa/src/lib/types.ts#L21) is wrong....
Wait... @kangmingtay, your wording is confusing me. I'm guessing you meant to say "emitting" but want to clarify. Should this event get sent or no?
@kangmingtay, I can take a look tomorrow; but what you said is why I initially assumed the docs were wrong, rather than the feature just not being coded.
@kav, the server doesn't have that type of relationship with the client - at least not that I know of. Even when the server is pushing info to the client,...
@kav I've run through a few scenarios in my head; but none of them required emitting this event in order to tidy up on the client-side afterward. Can you clarify...
Thanks kav! @kangmingtay one way to do this is to introduce a `deleteUser()` method in the GoTrueClient; which calls `this.admin.deleteUser('id')`. There's already a precedence for this with the `signOut()` method....
Someone having this issue when: - calling `updateUser`, https://github.com/supabase/supabase-js/issues/1010#issuecomment-2075024714 - calling `getAuthenticatorAssuranceLevel`, https://github.com/supabase/auth-js/issues/873#issuecomment-2079027017