Browse Source

React to ASWebAuthenticationSessionCompletionHandler.Error becoming nullable in .NET 9.0

pull/2140/head
Kévin Chalet 2 years ago
parent
commit
00a591a14b
  1. 7
      src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Authentication.cs
  2. 7
      src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Session.cs

7
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Authentication.cs

@ -157,10 +157,15 @@ public static partial class OpenIddictClientSystemIntegrationHandlers
source.SetResult(url);
}
else
else if (error is not null)
{
source.SetException(new NSErrorException(error));
}
else
{
source.SetException(new InvalidOperationException(SR.GetResourceString(SR.ID0448)));
}
});
#if SUPPORTS_PRESENTATION_CONTEXT_PROVIDER

7
src/OpenIddict.Client.SystemIntegration/OpenIddictClientSystemIntegrationHandlers.Session.cs

@ -157,10 +157,15 @@ public static partial class OpenIddictClientSystemIntegrationHandlers
source.SetResult(url);
}
else
else if (error is not null)
{
source.SetException(new NSErrorException(error));
}
else
{
source.SetException(new InvalidOperationException(SR.GetResourceString(SR.ID0448)));
}
});
#if SUPPORTS_PRESENTATION_CONTEXT_PROVIDER

Loading…
Cancel
Save