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