realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

Credentials.anonymous(reuseExisting = true) not work

Open helmysaeed opened this issue 1 year ago • 1 comments

How frequently does the bug occur?

Always

Description

Expected results use the same anonymous user ID with every session

Actual Results every time I log in with the anonymous user Realm generates a new user with a different ID so I can not trace the user

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

var app by mutableStateOf( App.create("appid"))

val anonymousCredentials = Credentials.anonymous(reuseExisting = true) user = app.login(anonymousCredentials) println("userId"+user!!.id)

Version

kotlin SDK 1.16.0

What Atlas App Services are you using?

Both Atlas Device Sync and Atlas App Services

Are you using encryption?

No

Platform OS and version(s)

windows 10

Build environment

Android Studio version: ... Android Build Tools version: ... Gradle version: ...

helmysaeed avatar May 18 '24 12:05 helmysaeed

➤ PM Bot commented:

Jira ticket: RKOTLIN-1081

sync-by-unito[bot] avatar May 18 '24 12:05 sync-by-unito[bot]

This is a duplicate of https://github.com/realm/realm-core/issues/7709.

nirinchev avatar May 21 '24 09:05 nirinchev