# /continue Unauthorized error after redirect action

**URL:** <https://community.auth0.com/t/continue-unauthorized-error-after-redirect-action/103256>\
**Category:** Get Help\
**Tags:** account-linking, user-management\
**Created:** [March 24, 2023, 2:16pm UTC](https://community.auth0.com/t/continue-unauthorized-error-after-redirect-action/103256 "2023-03-24T14:16:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janec.poppeliers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janec.poppeliers/32/33655_2.png) [@janec.poppeliers](https://community.auth0.com/u/janec.poppeliers)\
**Post date:** [March 24, 2023, 2:16pm UTC](https://community.auth0.com/t/continue-unauthorized-error-after-redirect-action/103256/1 "2023-03-24T14:16:13Z")

</div>

Hi,

Since a few days I’m getting an “Unauthorized” error on /continue. I did test the [possible causes in the faq](https://community.auth0.com/t/401-unauthorized-error-when-calling-continue-endpoint-after-a-redirect-from-the-rules/76281) but none seemed to stick.

Strange thing is that it works in dev. Comparing configs did not help.

Any Idea what could be the cause? Other things I should check?  
[.har](https://community.auth0.com/404) (6.2 MB)

Kind regards,

Janec

---

<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:** [March 24, 2023, 11:13pm UTC](https://community.auth0.com/t/continue-unauthorized-error-after-redirect-action/103256/3 "2023-03-24T23:13:36Z")

</div>

Hi @janec.poppeliers,

Welcome to the Auth0 Community!

I understand you encountered the Unauthorized error when calling the `/continue` endpoint after a redirect Action.

After my research, I found that this error happens when the state passed to the `/continue` endpoint does not match the initial state.

In your HAR file, I can confirm that the state passed was:

`state=EpvWQ48ypYx4YIorsAGvZClggl8qkG7J8iZzKE87u5E`

And was expecting:

`state=hKFo2SBrRnlkU0RtMmxpampqYTNibWExMEFsMmNzNm1WWmRhR6FuqHJlZGlyZWN0o3RpZNkgeHFiVlZ4U204TVJjamJ2S2NjcVc2Q0RSYVNWdW43ZkOjY2lk2SB0c0lrS21jQlVTU3lIdmRybkJBUVZNQklRcG9SM3N4Vw`

With that, could you please ensure that the state you pass back to the `/continue` endpoint is the one you see appended to the end of the Redirect URL?

I am looking forward to your update.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![janec.poppeliers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janec.poppeliers/32/33655_2.png) [@janec.poppeliers](https://community.auth0.com/u/janec.poppeliers)\
**Post date:** [March 27, 2023, 8:31am UTC](https://community.auth0.com/t/continue-unauthorized-error-after-redirect-action/103256/4 "2023-03-27T08:31:06Z")

</div>

Thank you so much, @rueben.tiow, for looking into this. You helped my fix this.

I had tried to put the state in the JWT using “event.transaction.state”. But apparently the state query parameter differs from “event.transaction.state”. I started using the “event.transaction.state” because at one point it seemed my redirects were being sent out without state parameter. Now, the state parameter is back and everything is good again.

---

<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:** [April 10, 2023, 8:31am UTC](https://community.auth0.com/t/continue-unauthorized-error-after-redirect-action/103256/5 "2023-04-10T08:31:28Z")

</div>

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