-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
5914
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:
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.