-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
All the time
Description
The async versions of login(credentials and linkUser(credentials are not visible to the compiler because the extensions they are defined are not declared public.
When using:
let _ = try await app.login(credentials: credentials)
I get the following compiler warnings:
No 'async' operations occur within 'await' expression No calls to throwing functions occur within 'try' expression
Stacktrace & log output
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
No 'async' operations occur within 'await' expression No calls to throwing functions occur within 'try' expression
Can you reproduce the bug?
Yes, always
Reproduction Steps
Try to use async version of login(credentials:
let _ = try await app.login(credentials: credentials)
or linkUser(credentials:
let _ = try await anonymousUser.linkUser(credentials: credentials)
Version
Realm 10.25.2 and RealmDatabase 11.15.0 for Swift
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 15.2
Build environment
Xcode version: 13.2.1 (13C100)