Access user cookies in an Action

Hi, I’m trying to create an Action to push a tracking event (Segment) when a login succeed. I know I could use a Webhook to do so but I would like to try an Action because it would be faster to implement. I would need to access the user cookies to retrieve a tracking id and getting the event recorded in the user flow. So my question is, it is possible to access user cookies in an Auth0 Action? At least read them. I tried using event.request.cookies but it is not available.

Hello @arnaud.courdille and welcome to the community!

Unfortunately, cookies aren’t going to be available from within an Action. If you are looking to customize the authentication experience based on certain data, it’s typically recommended to store such data in user_metadata or app_metadata.

Hope this helps to clarify!

1 Like

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