AWS Cognito Refused to Cooperate. So I Made Google and Cognito Think They're Talking to Each Other.(Nestjs)
The article describes a workaround for integrating Google Sign-In with AWS Cognito, bypassing Cognito's hosted UI and leveraging Google's token verification to create users with verified email addresses. This solution is suitable for scenarios where Cognito's standard federation is not feasible. To implement, verify Google tokens server-side using the google-auth-library, create Cognito users via admin APIs, and generate deterministic passwords from user IDs and a server secret. This approach works for both signup and sign-in, but may not be suitable for all use cases.