I'm trying to use Auth0 for my mobile application (Xamarin) and I've been following the quickstart guide provided by Auth0.
I've installed the component via Xamarin market (Visual Studio) and to do the integration, I've created a class file dedicated to Auth0 related operations. I copied and pasted the provided code from the quick start guide but visual studio returns this error:
The contextual keyword 'var' may only appear within a local variable declaration or in script code
The code provided used var instead of a normal variable so I'm not sure what I can substitute with it:
using Auth0.SDK;
namespace Application
{
class LoginHandler
{
var auth0 = new Auth0Client(
"*************",
"************************");
}
}
I'm not sure what I'm doing wrong, I'd also like some help implementing the Login UI as the Xamarin guides are deathly outdated.