How to use Cognito's identity_provider parameter?

I have better-auth configured in my Next.js app with Amazon Cognito and trying to send the user directly to Google sign in screen when clicking "Sign In" on my website. I would usually just add identity_provider=Google on Cognito's authorize URL. In NextAuth I found this. Is there a way to do that with better-auth?
Stack Overflow
Configuring next-auth CognitoProvider to pass identity_provider
Project details Next JS (version 14) AWS Cognito (Google & Facebook sign-in integrated) Regular login is handled inside my application, with the help of aws sdks For google & facebook sig...
2 Replies
Solo
SoloOP2d ago
GitHub
Pass IDP name to Cognito to allow user to skip Cognito IDP selectio...
Is this suited for github? Yes, this is suited for github Is your feature request related to a problem? Please describe. I authenticate users with Google via Amazon Cognito. Cognito allows sending ...
Solo
SoloOP2d ago
GitHub
Add additionalParams support to signIn.social and Amazon Cognito op...
fixes #5441 Summary by cubic Add support for additionalParams in signIn.social and the Cognito provider to pass extra query args to the OAuth authorization URL. This enables flows like pre-select...

Did you find this page helpful?