From 2bfcbfde30996099f225f0bd9a060becb0da4bc6 Mon Sep 17 00:00:00 2001 From: martincostello Date: Sat, 5 Jun 2021 08:46:56 +0100 Subject: [PATCH] Fix compiler error Check for tokens.Response being null to fix nullable error. --- src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs b/src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs index d70b0314c..811c06688 100644 --- a/src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs +++ b/src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs @@ -339,7 +339,7 @@ private async Task HandleRemoteAuthenticateAsync( } } - string? idToken = tokens.Response.RootElement.GetString("id_token"); + string? idToken = tokens.Response?.RootElement.GetString("id_token"); if (!string.IsNullOrEmpty(idToken)) {