# Idtoken null in web lock 11

**URL:** <https://community.auth0.com/t/idtoken-null-in-web-lock-11/9341>\
**Category:** Get Help\
**Tags:** jwt, idtoken, web-lock, auth0\
**Created:** [January 30, 2018, 9:51pm UTC](https://community.auth0.com/t/idtoken-null-in-web-lock-11/9341 "2018-01-30T21:51:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurt.sys](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kurt.sys/32/22516_2.png) [@kurt.sys](https://community.auth0.com/u/kurt.sys)\
**Post date:** [January 30, 2018, 9:51pm UTC](https://community.auth0.com/t/idtoken-null-in-web-lock-11/9341/1 "2018-01-30T21:51:21Z")

</div>

In my app, I embedded auth0 web lock for authentication. All seems to work fine, except that I can’t find the JWT (which I need to call my own api). Here’s what I get as return value from auth0 web lock:

```
{accessToken: "QhGObH6d-Xfmo5vh7Y_ln3OtYhy7lZsS",
 idToken: null, 
 idTokenPayload: null,
 appState: null, 
 refreshToken: null
}

```

I can use this to get the user profile, but I can’t(!) find the JWT… how or where is the token found in the result of the auth web lock (11)?

---

<div class="post-metadata">

**Author:** ![jordansherman](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jordansherman](https://community.auth0.com/u/jordansherman)\
**Post date:** [February 5, 2018, 3:26am UTC](https://community.auth0.com/t/idtoken-null-in-web-lock-11/9341/2 "2018-02-05T03:26:38Z")

</div>

I had the same issue, your auth0 options json object is probably not set correctly. Set it like this:

```
  auth0Options = {
    auth: {
      responseType: 'token id_token',
      audience: 'blah',
      redirectUri: 'blah',
      scope: 'openid',
    },
    autoclose: true,
    oidcConformant: true,
  };

  // Initializing our Auth0Lock
  lock = new Auth0Lock(
    'your clientId',
    'your domain',
    this.auth0Options
  );

```

---

<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:** [July 25, 2019, 9:55am UTC](https://community.auth0.com/t/idtoken-null-in-web-lock-11/9341/3 "2019-07-25T09:55:11Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
