Accessing State Param in Custom Database Login Script?

We’re doing a trickle migration for users that already exist on our system. We expose an API endpoint which we call from the Custom Database Login script to validate user credentials, then import them into the Auth0 database.

In order to better secure that endpoint, we’d like to generate a custom migration token which we save alongside the user record, then validate that token when the Login script makes a request to our server. For individual login flows, we can do this via the state URL parameter that we pass to and from Auth0.

The question is this: is it possible to access that state parameter within the custom database login script? Google isn’t turning up any helpful results, and attempting to examine e.g., the configuration variable within the custom script isn’t turning up anything helpful, either.