Closed
Description
When we persist the user in the metadata Realm, we use the string representation of the provider but we have the same representations for apiKey
and serverApiKey
:
realm-core/src/realm/object-store/sync/app_credentials.cpp
Lines 33 to 34 in 7b08700
Is this intentional? This has the unpleasant side effect that:
enum_from_provider_type(provider_type_from_enum(AuthProvider::SERVER_API_KEY)) != AuthProvider::SERVER_API_KEY;
And if you log in a user with a server api key credential, their provider will instead be API_KEY
.
Metadata
Metadata
Assignees
Labels
No labels