Skip to content

Instantly share code, notes, and snippets.

View cocojoe's full-sized avatar

Martin Walsh cocojoe

View GitHub Profile
@cocojoe
cocojoe / fix.cs
Last active September 26, 2019 18:06
Xamarin ASWebAuthenticationSession iOS 13
// Source https://github.com/auth0/auth0-oidc-client-net/blob/master/src/Auth0.OidcClient.iOS/ASWebAuthenticationSessionBrowser.cs#L22-L32
ASWebAuthenticationSession asWebAuthenticationSession = null;
asWebAuthenticationSession = new ASWebAuthenticationSession(
new NSUrl(options.StartUrl),
options.EndUrl,
(callbackUrl, error) =>
{
tcs.SetResult(CreateBrowserResult(callbackUrl, error));