realm / realm-kotlin

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

Ability to switch user #1813

Closed tomcully closed 3 months ago

tomcully commented 3 months ago

Problem

There looks like there isn't any way to Change the Active User on the Kotlin SDK at the moment. It looks like it's on all the other (or at least most other) language sdks

Solution

adding app.switch(to: secondUser) to the sdk

Alternatives

I've considered logging in every time. However, calling "app.login" doesn't work whilst offline

How important is this improvement for you?

Dealbreaker

Feature would mainly be used with

Atlas App Services: Auth or Functions etc

sync-by-unito[bot] commented 3 months ago

➤ PM Bot commented:

Jira ticket: RKOTLIN-1115

nirinchev commented 3 months ago

This looks like an oversight. We should be able to add that fairly quickly though.