Auth0 Home Blog Docs

Passing params from Lock to Hooks


#1

Hey everyone,
First post so sorry if the category is incorrect. We are using the Lock v11 on our page and we need to pass query params through along with the user signup information so we send tracking information along for our marketing team. Currently I’m able to pass the query in the lock configuration in

const lockOptions = {
  auth: { 
    params: {
      query: {...},
    },
  },
};

And I’m able to see these passed through to our Rules via

context.request.query.query

However, I can’t seem to figure out how to pass this along to a (post registration) Hook. I tried setting user metadata in the Rule and passing that along but it doesn’t seem to stick. Is there something I’m missing? Thanks in advance,

-Matt


#3

Hey @mattbrown

As it has been more than a few months since this topic was opened and there has been no reply or further information provided from the community as to the existence of the issue we would like to check if you are still facing the described challenge?

We are more than happy to assist in any way! If the issue is still out there please let us know so we can create a new thread for better visibility, otherwise we’ll close this one in week’s time.

Thank you!


#4

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