Redirect URI query params on login failure redirect with IdP

We are attempting to use Auth0 as our identity provider for our project. It's all set up just fine. However, we added an action in auth0 that denys user login if they haven't verified their email yet.

api.access.deny('Please verify your email before logging in.');

Something like that in Auth0.

This does deny the login, however it just redirects back to the login screen. According to auth0 docs, the deny reason is passed to the returning redirect as query params.

How would I be able to access these query params after being redirected back?

Ignition will log the error to gateway logger gateway.WebAuthSessionImpl but there is not currently a way for you to capture that error in Perspective or Vision.

You'd be better off changing the logic on the Auth0 side to show the error message on the Auth0 sign in screen instead, if possible.