Looking for authentication service alternative for AWS-based application

I’m running into major issues with AWS Cognito and need to switch to a different authentication provider. I’ve been struggling with basic functionality and the social login sign out process keeps causing browser redirects that I can’t fix. This has been going on for way too long and I need a better solution.

My current setup uses API Gateway for both REST and WebSocket endpoints, Lambda functions, S3 storage, CloudFront for content delivery, Rekognition for image processing, and DynamoDB as the database. Everything runs on AWS infrastructure.

The most important requirement is that whatever auth service I choose needs to work smoothly with API Gateway authorizers. Has anyone successfully migrated from Cognito to another provider while keeping their AWS setup? What are some reliable alternatives that integrate well with this kind of architecture?