In a multi-tenant SaaS application that uses Amazon Cognito, the tenant identity carried in verified token claims, such…