# Custom domains failing with iss issue

**URL:** <https://community.auth0.com/t/custom-domains-failing-with-iss-issue/86184>\
**Category:** Get Help\
**Tags:** custom-domain\
**Created:** [June 29, 2022, 5:27pm UTC](https://community.auth0.com/t/custom-domains-failing-with-iss-issue/86184 "2022-06-29T17:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david25](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david25/32/38478_2.png) [@david25](https://community.auth0.com/u/david25)\
**Post date:** [June 29, 2022, 5:27pm UTC](https://community.auth0.com/t/custom-domains-failing-with-iss-issue/86184/1 "2022-06-29T17:27:29Z")

</div>

We are trying to implement custom Auth0 custom domains and running into an issue where users can’t access a protected route after authenticating through the custom domain. Our logic basically follows example 4 in [this document](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md#4-create-a-useapi-hook-for-accessing-protected-apis-with-an-access-token).

Looking at our backend token verification logs, we’re getting this error:

`InvalidTokenError: Unexpected 'iss' value`

Is there something we need to do to ensure the `iss` claim is correct using custom domains?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 30, 2022, 9:10pm UTC](https://community.auth0.com/t/custom-domains-failing-with-iss-issue/86184/2 "2022-06-30T21:10:47Z")

</div>

Hello @david25 welcome to the community!

> [@](#):
>
> InvalidTokenError: Unexpected ‘iss’ value

What is the `iss` value currently?

> [@david25](#):
>
> Is there something we need to do to ensure the `iss` claim is correct using custom domains?

I might recommend taking a look at the following post, and in particular the article on configuring features for custom domains:

> [@Auth0 openid with custom domain failing](https://community.auth0.com/t/auth0-openid-with-custom-domain-failing/55222/3):
>
> Hi @manish1 and welcome to the Auth0 Community! tada grinning Can you please confirm that you’ve followed our documentation concerning additional configurations for your Custom Domain? Please review those and let me know if you’ve already attempted following those guidelines. If you’re still having trouble, I’d ask that you DM me your tenant so I can have a closer look. Best Regards, Colin

Let us know where you land!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 15, 2022, 9:11pm UTC](https://community.auth0.com/t/custom-domains-failing-with-iss-issue/86184/4 "2022-07-15T21:11:07Z")

</div>

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