# Post Login Action: Can't get passback JWT validated "The session token is invalid: Missing or invalid standard claims"

**URL:** <https://community.auth0.com/t/post-login-action-cant-get-passback-jwt-validated-the-session-token-is-invalid-missing-or-invalid-standard-claims/69127>\
**Category:** Get Help\
**Tags:** jwt\
**Created:** [September 6, 2021, 9:16am UTC](https://community.auth0.com/t/post-login-action-cant-get-passback-jwt-validated-the-session-token-is-invalid-missing-or-invalid-standard-claims/69127 "2021-09-06T09:16:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hendrik](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hendrik/32/31562_2.png) [@hendrik](https://community.auth0.com/u/hendrik)\
**Post date:** [September 6, 2021, 9:16am UTC](https://community.auth0.com/t/post-login-action-cant-get-passback-jwt-validated-the-session-token-is-invalid-missing-or-invalid-standard-claims/69127/1 "2021-09-06T09:16:39Z")

</div>

I am having issues to complete my post login flow because I can’t seem to get my passback JWT validated on the /continue action.

There seem to be either a standard claim missing, or wrong. I couldn’t figure out cause I wasn’t able to extract a more detailed error message or debug it in depth with " Real-time Webtask Logs" . It would be at least nice to know what is either missing or what claim is wrong.

[https://auth0.com/docs/actions/triggers/post-login/redirect-with-actions#pass-information-back-to-the-action](https://auth0.com/docs/actions/triggers/post-login/redirect-with-actions#pass-information-back-to-the-action)  
From the list shown here I ensured that all the fields are there. This is my business logic to build the new token by taking some fields from the sessionToken I received from the action-redirect:

```auto
    $tokenPayload= [
            "sub" => $tokenSessionFromAction->sub,
            "iss" => $tokenSessionFromAction->iss,
            "exp" => $tokenSessionFromAction->exp + 1000,
            "state" => $state,
            "optionalField" => "should show up in payload"
        ];

```

What am I missing here?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 23, 2021, 12:01am UTC](https://community.auth0.com/t/post-login-action-cant-get-passback-jwt-validated-the-session-token-is-invalid-missing-or-invalid-standard-claims/69127/3 "2021-09-23T00:01:27Z")

</div>

Hi @hendrik,

Welcome to the Auth0 Community.

I understand that you are encountering issues with validating your JWT token.

Having looked closely at your `tokenPayload`, I noticed that you did not include the audience claim. I recommend including the `aud` claim in your tokenPayload as part of your token validation.

Note that the format for JWT validation checks includes:

- Signature
- Issuer claim
- Audience claim
- Expiration claim
- Other claims

You can also find the expected values in a token by checking the discovery endpoint:

```auto
https://YOUR_DOMAIN.REGION.auth0.com/.well-known/openid-configuration

```

Please let me know if that helps.

Thank you.

---

<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:** [October 15, 2021, 7:42pm UTC](https://community.auth0.com/t/post-login-action-cant-get-passback-jwt-validated-the-session-token-is-invalid-missing-or-invalid-standard-claims/69127/4 "2021-10-15T19:42:00Z")

</div>

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