Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
Check for tokens.Response being null to fix nullable error.
  • Loading branch information
martincostello committed Jul 4, 2021
1 parent fdab217 commit 2bfcbfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ private async Task<HandleRequestResult> HandleRemoteAuthenticateAsync(
}
}

string? idToken = tokens.Response.RootElement.GetString("id_token");
string? idToken = tokens.Response?.RootElement.GetString("id_token");

if (!string.IsNullOrEmpty(idToken))
{
Expand Down

0 comments on commit 2bfcbfd

Please sign in to comment.