I've been trying to use SSO through Javascript for Ionic, & Chalice in my Backend. The below function works, But I am unable to retrieve AccessToken, IdToken, RefreshToken, which in return uses my AWS resources.
AWS.config.credentials.get(function(){
// Access AWS resources here.
});
Whereas the function returns other tokens. Is there a way to get my required credentials?