Custom social connection with JWT

Hey guys. We’re using Auth0 on one of our projects and one issue that I’m trying to figure out how to do it It’s to use an external provider on the custom social connection login.

It’s a client project and we don’t have much freedom to change it. I’m already redirecting the user to the external login page and that login page can redirect me to a fixed url with the jwt parameter on the url.

So, after the login, the login send the user to the url defined on the return_to= with a jwt= containing all the user data.

There’s a way to use the provided jwt on the Auth0 to make the login?

Or at least, there’s something that can be changed to make it work?