# Can't configure lock in Xamarin; Access token not JWT

**URL:** <https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374>\
**Category:** Get Help\
**Tags:** mobile, access-token, xamarin, lock, ios\
**Created:** [April 26, 2017, 9:29pm UTC](https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374 "2017-04-26T21:29:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![frapaquad](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@frapaquad](https://community.auth0.com/u/frapaquad)\
**Post date:** [April 26, 2017, 9:29pm UTC](https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374/1 "2017-04-26T21:29:12Z")

</div>

I’m trying to use auth0 to allow a client on a mobile app to connect to an API.

After login, I get back an “access token” that isn’t a JWT, and the server (which I have already tested) doesn’t recognize whatever this thing is.

I’ve seen answers to similar questions where the OP is told they need to modify the Lock configuration, but, the Auth0 Xamarin component doesn’t seem to have any interfaces to do this.

Please advise.

---

<div class="post-metadata">

**Author:** ![frapaquad](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@frapaquad](https://community.auth0.com/u/frapaquad)\
**Post date:** [April 26, 2017, 9:46pm UTC](https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374/2 "2017-04-26T21:46:29Z")

</div>

Nevermind. I see the Xamarin Auth0 SDK is dead software. You people should cut that sort of thing out. I wasted two hours trying to figure this out when I should have skipped it altogether. It does _not_ belong in your manuals. Dead interfaces do not belong in your manuals.

---

<div class="post-metadata">

**Author:** ![Scott\_Colestock](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott_colestock/32/6424_2.png) [@Scott\_Colestock](https://community.auth0.com/u/Scott_Colestock)\
**Post date:** [September 6, 2017, 5:37am UTC](https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374/3 "2017-09-06T05:37:18Z")

</div>

So, if you are starting off with this sample: [https://github.com/auth0-community/auth0-xamarin-oidc-samples/tree/master/Quickstart/01-Login](https://github.com/auth0-community/auth0-xamarin-oidc-samples/tree/master/Quickstart/01-Login)

You will want to pay attention to the `options` parameter of `LoginAsync`. Easiest to just use an anonymous type here - its going to get converted into a dictionary prior to being serialized for the request that gets made. Using this enabled me to get a JWT in the access token with the correct audience.

```
var client = new Auth0Client(new Auth0ClientOptions
{
   Domain = "yourdomain.auth0.com",
   ClientId = "some client id",
   Controller = this.GetTopmostController(),
   Scope = "openid email profile"
});
    
var options = new {audience = "https://yourapiaudience.com", responseType = "id_token token"};
    
var loginResult = await client.LoginAsync(options);

```

---

<div class="post-metadata">

**Author:** ![frapaquad](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@frapaquad](https://community.auth0.com/u/frapaquad)\
**Post date:** [April 26, 2017, 9:46pm UTC](https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374/4 "2017-04-26T21:46:29Z")

</div>

Nevermind. I see the Xamarin Auth0 SDK is dead software. You people should cut that sort of thing out. I wasted two hours trying to figure this out when I should have skipped it altogether. It does _not_ belong in your manuals. Dead interfaces do not belong in your manuals.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/cant-configure-lock-in-xamarin-access-token-not-jwt/6374/5 "2018-03-02T05:53:31Z")

</div>


