Auth0 Home Blog Docs

Facing issue when trying add Auth0.OidcClient to my Xamarin project

auth0
login

#1

Hello,

Facing issue when trying add Auth0.OidcClient to my Xamarin project.

Steps done:

Installed Auth0.OidcClient.Android and Auth0.OidcClient.iOS packages for appropriate directories.

Added following code in page.cs:

using Auth0.OidcClient;
...

 var client = new Auth0Client(new Auth0ClientOptions
        {
            Domain = "dragonsms.auth0.com",
            ClientId = "Wc7asdX2k5Rn2eCetr4pOlgWmUbsGrV9V4L"
        });
        var loginResult = await client.LoginAsync();
    }

When try to run getting following:

Error CS0246: The type or namespace name ‘Auth0’ could not be found (are you missing a using directive or an assembly reference?)

P.S.

In PCL project everything working fine