# Cannot know which website the request comes from with new post-login actions

**URL:** <https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260>\
**Category:** Get Help\
**Tags:** login\
**Created:** [May 5, 2021, 12:39pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260 "2021-05-05T12:39:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![juncheng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juncheng/32/24831_2.png) [@juncheng](https://community.auth0.com/u/juncheng)\
**Post date:** [May 5, 2021, 12:39pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/1 "2021-05-05T12:39:55Z")

</div>

Hello Auth0,

I just received a notification that the new version of login/post login is updated. I try to use it to replace the legacy action which I created before.

But it seems the event data is not exactly the same.

For example, we have multiples sites with the same auth0 talent. We are using  
`event.actor.query.redirect_uri` to detect where is the request come from. Then we will do different action for different site’s request.

But we lose this data in new login/post login action. As I know the only change here should be the params of API. Could we keep the event as the same as before?

Best,  
Juncheng ZHOU

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 5, 2021, 7:38pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/3 "2021-05-05T19:38:45Z")

</div>

Hi @juncheng,

I have asked the team that has built Actions about how to access the data that used to be available in the `event.actor` object during beta and will let you know what I hear back!

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 6, 2021, 11:48am UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/4 "2021-05-06T11:48:51Z")

</div>

Hi @juncheng,

I’ve heard back from the team, and they let me know that the `event.actor` data is now split between `event.transaction` and `event.request`. The `redirect_uri` is not currently available, but the team is working on adding it now and it will be available very soon. Thank you for this feedback!

---

<div class="post-metadata">

**Author:** ![juncheng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juncheng/32/24831_2.png) [@juncheng](https://community.auth0.com/u/juncheng)\
**Post date:** [May 6, 2021, 4:18pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/5 "2021-05-06T16:18:41Z")

</div>

Hello stephanie,

Thanks for your help. And quick response.

I will keep use legacy login action until the latest one is updated.

---

<div class="post-metadata">

**Author:** ![ggoodman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ggoodman/32/12614_2.png) [@ggoodman](https://community.auth0.com/u/ggoodman)\
**Post date:** [May 11, 2021, 6:34pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/6 "2021-05-11T18:34:44Z")

</div>

Hello @juncheng, we’re launching [Actions as GA](https://auth0.com/blog/auth0-actions-is-now-generally-available/) today. In order to understand how to port your Actions created during the beta period to the programming models introduced at GA, please see our docs on the [Changes to the Programming Model](https://auth0.com/docs/actions/programming-model-changes) and the shape of the [Shape of the PostLogin Event Object](https://auth0.com/docs/actions/triggers/post-login/event-object).

---

<div class="post-metadata">

**Author:** ![juncheng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/juncheng/32/24831_2.png) [@juncheng](https://community.auth0.com/u/juncheng)\
**Post date:** [May 12, 2021, 9:12am UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/7 "2021-05-12T09:12:28Z")

</div>

Thanks ggoodman,

But do you know there is a problem to use `Optional chaining`?

No matter ?. or ??, they will break the action, but no any error display.

---

<div class="post-metadata">

**Author:** ![ggoodman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ggoodman/32/12614_2.png) [@ggoodman](https://community.auth0.com/u/ggoodman)\
**Post date:** [May 12, 2021, 1:44pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/8 "2021-05-12T13:44:52Z")

</div>

The version of Node in the current runtime doesn’t yet support optional chaining. We’ve decided not to do any source-to-source transformation for the time being either.

As newer Node runtimes with optional chaining get rolled out in Actions, this syntax will be supported.

---

<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:** [May 27, 2021, 1:45pm UTC](https://community.auth0.com/t/cannot-know-which-website-the-request-comes-from-with-new-post-login-actions/62260/9 "2021-05-27T13:45:48Z")

</div>

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