# Invalid Grant/Invalid id\_token when authenticating with TouchID and Auth0

**URL:** <https://community.auth0.com/t/invalid-grant-invalid-id-token-when-authenticating-with-touchid-and-auth0/7346>\
**Category:** Get Help\
**Tags:** touchid, id\_token, swift, ios\
**Created:** [June 30, 2017, 11:28pm UTC](https://community.auth0.com/t/invalid-grant-invalid-id-token-when-authenticating-with-touchid-and-auth0/7346 "2017-06-30T23:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@eric1](https://community.auth0.com/u/eric1)\
**Post date:** [June 30, 2017, 11:28pm UTC](https://community.auth0.com/t/invalid-grant-invalid-id-token-when-authenticating-with-touchid-and-auth0/7346/1 "2017-06-30T23:28:25Z")

</div>

Hi all,  
I’m having a hard time authenticating users with TouchID and Auth0. I get a 400 status code and the following error after the public key and the JWT token are successfully generated and when I try to login with the returned JWT.

```
{
    "error": "invalid_grant",
    "error_description": "invalid id_token"
}

```

Any hint or suggestion?

Thanks.

---

<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:55am UTC](https://community.auth0.com/t/invalid-grant-invalid-id-token-when-authenticating-with-touchid-and-auth0/7346/2 "2018-03-02T05:55:06Z")

</div>


