realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
933 stars 57 forks source link

Provide notification event when switching user #1818

Open rorbech opened 1 month ago

rorbech commented 1 month ago

Problem

With #1813 we introduced the ability to switch user, but there is currently no way to listen for updates to the current users.

Solution

We could expose this as an AuthenticationChange-event.

Alternatives

Alternatively we could expose Core's generic app->subscribe mechanism as for JS to signal that something changed and let the user have to examine the current user themselves.

How important is this improvement for you?

I would like to have it but have a workaround

Feature would mainly be used with

Atlas App Services: Auth or Functions etc

sync-by-unito[bot] commented 1 month ago

➤ PM Bot commented:

Jira ticket: RKOTLIN-1118