Have you integrated Yii2 auth with AWS Cognito?

For various reasons, I’m looking to pull out authn/authx from yii2 into AWS Cognito. Has anybody done this in Yii2 and, if so, what library did you use or did you write a custom component for this? I’m hoping to not reproduce that work.

Have looked at Auth0 but we’re already in AWS so there are some benefits to staying native. Open to feedback on that as well.