Skip to content

Commit

Permalink
Added check to parse AuthResult from URI if post data is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaytak committed Jul 20, 2021
1 parent bf80f08 commit b87fee4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private bool CheckForClosingUrl(Uri url, byte[] postData = null)
url.AbsolutePath.Equals(_desiredCallbackUri.AbsolutePath))
{
RequestContext.Logger.Info("[Legacy WebView] Redirect URI was reached. Stopping WebView navigation...");
Result = AuthorizationResult.FromPostData(postData);
Result = postData != null ? AuthorizationResult.FromPostData(postData) : AuthorizationResult.FromUri(url.OriginalString);
readyToClose = true;
}

Expand Down

0 comments on commit b87fee4

Please sign in to comment.