# Missing id\_token and refresh\_token

**URL:** <https://community.auth0.com/t/missing-id-token-and-refresh-token/9720>\
**Category:** Get Help\
**Created:** [March 5, 2018, 3:57pm UTC](https://community.auth0.com/t/missing-id-token-and-refresh-token/9720 "2018-03-05T15:57:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardojarree](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ricardojarree](https://community.auth0.com/u/ricardojarree)\
**Post date:** [March 5, 2018, 3:57pm UTC](https://community.auth0.com/t/missing-id-token-and-refresh-token/9720/1 "2018-03-05T15:57:58Z")

</div>

I am attempting to login users on a Xamarin.Forms app and allow them to access the apps API and get their information. I am able to login by going to [https://app-name.eu.auth0.com/authorize](https://app-name.eu.auth0.com/authorize) in a webview with the response type as code and then catching when the WebView tries to navigate to the redirect\_uri and then extracting the code from the url it is trying to navigate to.

When using the code returned in the redirect\_uri to get the tokens from [https://app-name.eu.auth0.com/oauth/token](https://app-name.eu.auth0.com/oauth/token) all I get is the access\_token, expires\_in and token\_type no id\_token or refresh\_token like shown in this guide: [Execute an Authorization Code Grant Flow with PKCE](https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce).

Is there anything I might be missing?

This is the code for the rest request:

```
            RestClient client = new RestClient("https://APP-NAME.eu.auth0.com/oauth/token");
        RestRequest restRequest = new RestRequest(Method.POST);
        restRequest.AddHeader("content-type", "application/json");
        string json = "{\"grant_type\":\"authorization_code\"," +
            "\"client_id\": \"" + Settings.ClientId + "\"," +
            "\"code_verifier\": \"" + Verifier + "\"," +
            "\"code\": \"" + code + "\"," +
            "\"redirect_uri\": \"" + Settings.RedirectUrl + "\" }";

```

This is the Authorize URL that the webview goes to:

```
"https://APP-NAME.eu.auth0.com/authorize?"
            + "audience=http://API-NAME.azurewebsites.net/&"
            + "scopes=offline_access openid&"
            + "response_type=code&"
            + "client_id=" + Settings.ClientId + "&"
            + "code_challenge=" + challenge + "&"
            + "code_challenge_method=S256&"
            + "redirect_uri=" + Settings.RedirectUrl

```

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 17, 2018, 4:57pm UTC](https://community.auth0.com/t/missing-id-token-and-refresh-token/9720/2 "2018-12-17T16:57:15Z")

</div>

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 17, 2018, 4:57pm UTC](https://community.auth0.com/t/missing-id-token-and-refresh-token/9720/3 "2018-12-17T16:57:18Z")

</div>


