To get Auth0 token in Salesforce apex code

I have setup my Auth0 with salesforce social authentication and it works well.

On Salesforce side (after logged in using salesforce credentials) in Apex code I wanted to get the token from Auth0. What API or any other approach can I use here?

Since the user is already logged into Salesforce and when I call Auth0 api it should be able to take the logged in user’s identity from browser and return the token directly. This is my understanding and expect it to work.

Hi @dan.woda do you know any solution that would help? I just need the token on Salesforce backend side (APEX code). My Salesforce org has a connected app which is referred in Auth0 config.

But if I need to integrate any lib I would give it a try as my last option from Salesforce front end side.