# Back-channel JWT decoded error

**URL:** <https://community.auth0.com/t/back-channel-jwt-decoded-error/122588>\
**Category:** Get Help\
**Tags:** sessions, logout\
**Created:** [December 8, 2023, 2:24am UTC](https://community.auth0.com/t/back-channel-jwt-decoded-error/122588 "2023-12-08T02:24:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edgar.saavedra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/edgar.saavedra/32/47601_2.png) [@edgar.saavedra](https://community.auth0.com/u/edgar.saavedra)\
**Post date:** [December 8, 2023, 2:24am UTC](https://community.auth0.com/t/back-channel-jwt-decoded-error/122588/1 "2023-12-08T02:24:07Z")

</div>

Hello, I am configuring the back-channel and in my code (node.js 18.x) I am trying to decode the JWT that I receive through the request (logout\_token), I am having problems with the “issuer”.  
I am dealing with the two urls of auth0:

issuer: custom domain  
issuer: https://{organization}.{code}.auth0.com

```auto
 // get remote key set for token verification
    const JWKS = jose.createRemoteJWKSet(
      new URL(`https://${process.env.ISSUER_URL}/.well-known/jwks.json`)
    );

    const { payload } = await jose.jwtVerify(logoutToken, JWKS, {
      issuer: process.env.ISSUER_URL + '/',
      audience: process.env.CLIENT_ID,
      typ: 'JWT',
      maxTokenAge: '2 minutes'
    });

```

and this is the error:

```auto
Error on back channel logout: JWTClaimValidationFailed: unexpected "iss" claim value.
code: 'ERR_JWT_CLAIM_VALIDATION_FAILED',
claim: 'iss',
reason: 'check_failed'

```

---

<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:** [December 8, 2023, 11:04pm UTC](https://community.auth0.com/t/back-channel-jwt-decoded-error/122588/3 "2023-12-08T23:04:53Z")

</div>

Hey @edgar.saavedra welcome to the community!

> [@edgar.saavedra](#):
>
> I am trying to decode the JWT that I receive through the request (logout\_token)

While I’m not super familiar with this particular flow, the error is typically related to a misconfiguration or mismatch of the `issuer` values. The `issuer` claim in the token needs to match the issuer you are setting in your code. In this case it should most likely be your custom domain in both places.

---

<div class="post-metadata">

**Author:** ![edgar.saavedra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/edgar.saavedra/32/47601_2.png) [@edgar.saavedra](https://community.auth0.com/u/edgar.saavedra)\
**Post date:** [December 9, 2023, 12:33am UTC](https://community.auth0.com/t/back-channel-jwt-decoded-error/122588/4 "2023-12-09T00:33:32Z")

</div>

Thanks for the info, I have already reviewed it and indeed the custom domain has to go in both if it is enabled.

---

<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:** [December 23, 2023, 12:33am UTC](https://community.auth0.com/t/back-channel-jwt-decoded-error/122588/5 "2023-12-23T00:33:47Z")

</div>

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