I am trying to login using realm-dotnet version: 10.15.1.
While using MAUI, it logged in fine.
But when I use the same code for login in xamarin i get the following error:
{Realms.Sync.Exceptions.AppException: code 998: An unexpected error occurred while sending the request: Authentication failed, see inner exception.: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132
at Realms.Sync.AppHandle.LogInAsync (Realms.Sync.Native.Credentials credentials) [0x00055] in D:\a\realm-dotnet\realm-dotnet\Realm\Realm\Handles\AppHandle.cs:294
at Realms.Sync.App.LogInAsync (Realms.Sync.Credentials credentials) [0x0003d] in D:\a\realm-dotnet\realm-dotnet\Realm\Realm\Sync\App.cs:214
Here is the code I used to login:
if(this._dbService == null)
{
_dbService = Ioc.Default.GetService<IDbService>();
}
if (_dbService != null)
{
var user = await _dbService.LoginAsync(email, password);
if (user != null)
{
return ResultType.SUCCESS;
}
else
{
return ResultType.UNKNOWN;
}
}
else
{
return ResultType.UNKNOWN;
}