Send custom params on login with user and password

Hi,

I have some follow up questions to the solution described here. In the following suggestion:

1.- Append an invite_code querystring parameter (or however you want to call it) in your transactions

What do “transaction” refer to?

Lets say I have an invite link like www.example.com/invite/my-invite-code, when I click on this link and get redirected to the Auth0 login page, how do I make sure my-invite-code was propagated? In other words, is there a way to automatically append it to custom query params, or in some cookie, or encode it in the state query param?

Additionally, how do I get access to the invite code inside Custom Database functions? It looks like the context object is not available in Custom Database functions. For some background here, in my system, the invite code will be linked to a shell user record, which I would like to update through Custom Database Functions upon creating the account in Auth0.

Thanks!