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 Jun 5, 2021
1 parent 2a5f17c commit 465497a
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 465497a

Please sign in to comment.