# Id\_token not present in TokenSet // tenant must be specified

**URL:** <https://community.auth0.com/t/id-token-not-present-in-tokenset-tenant-must-be-specified/98392>\
**Category:** Get Help\
**Tags:** tenant-management, support-center\
**Created:** [January 18, 2023, 5:19am UTC](https://community.auth0.com/t/id-token-not-present-in-tokenset-tenant-must-be-specified/98392 "2023-01-18T05:19:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moxie.dee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/moxie.dee/32/39957_2.png) [@moxie.dee](https://community.auth0.com/u/moxie.dee)\
**Post date:** [January 18, 2023, 5:19am UTC](https://community.auth0.com/t/id-token-not-present-in-tokenset-tenant-must-be-specified/98392/1 "2023-01-18T05:19:47Z")

</div>

I’m using Next.js and ‘@auth0/nextjs-auth0’ library, my application works very well on the local environment, but when I moved to staging/production this endpoint `https://my-domain/api/auth/callback?code=some token` returns a 400 with response `id_token not present in TokenSet`.

Also when I tried using the password change flow, I got an error `{"name":"BadRequestError","code":"missing_property","description":"tenant must be specified","statusCode":400}` when I completed the password change and it is time to get redirected.

The only thing that changed since the last time it worked is that we changed our base url to a `subdomain`, which has been updated across all environments. I saw solutions around openid profile and I can say I have configured that right too.

Please any help will be great.  
Moxie.

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [January 31, 2023, 2:43pm UTC](https://community.auth0.com/t/id-token-not-present-in-tokenset-tenant-must-be-specified/98392/2 "2023-01-31T14:43:35Z")

</div>

Hi @moxie.dee

Welcome to the Auth0 Community.

Another user had a similar issue here [https://community.auth0.com/t/id-token-not-present-in-tokenset/63690](https://community.auth0.com/t/id-token-not-present-in-tokenset/63690)

Please can you review and see if this applies to your case.

Warm regards.

---

<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:** [February 14, 2023, 2:44pm UTC](https://community.auth0.com/t/id-token-not-present-in-tokenset-tenant-must-be-specified/98392/3 "2023-02-14T14:44:34Z")

</div>

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