How to get AWS credentials after logging in from Wordpress?

I’m trying to find the best way to use Auth0 as identity provider to get AWS credentials from the browser. I don’t know what would be the best way to do this from Wordpress once the user has logged in. I’m using the WP Auth0 plugin, but I guess there must be a way to get the user profile info/token using front-end javascript once logged into Wordpress. Help will be really appreciated. BTW, I have done all the steps to setup the IAM role in AWS, I just need some Javascript that sends the token, assumes the IAM role, and gets the AWS creds on the browser.