IamIconLiving
IamIconLiving2d ago

A way to force user choose an account with Google Sign in?

I have an app where I need to offer user to select an account every time they try to sign in. I saw few posts around this topic, where someone found that if user is signed in in browser for more than one account then accounts will be always prompted, but that is not a correct behaviour. I have a react native app where I use sign in with convex and I can't expect user to go to a browser, sign in somewhere and then come back to the app and sign in in my app, it will churn all users away :). Has anyone found a way to reliably force prompt every time?
2 Replies
Convex Bot
Convex Bot2d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
IamIconLiving
IamIconLivingOP2d ago
seems like found a way, in initiating of convexAuth , adding configuration of Google in following way:
Google({
authorization: {
params: {
prompt: "select_account",
},
},
}),
Google({
authorization: {
params: {
prompt: "select_account",
},
},
}),

Did you find this page helpful?