Skip to content
Back

Google consent screen is not showing after first time.

  • 0
  • Auth
  • Web
devAshutosh_karn
10 Oct, 2025, 04:02

Hey Appwrite team! πŸ‘‹ I'm working on a Next.js app with Google OAuth integration using Appwrite, and I've run into a common UX scenario that could be improved. Current Issue: When users logout and try to login again, Google automatically logs them in with the previous account without showing the consent/account selection screen. This is Google's default behavior, but sometimes users want to switch accounts. Desired Solution: It would be great if account.createOAuth2Session() could support the prompt parameter from OAuth2 spec, specifically: account.createOAuth2Session({ provider: OAuthProvider.Google, success: 'success-url', failure: 'failure-url', scopes: ['email', 'profile'], prompt: 'select_account' // πŸ‘ˆ This would force Google to show account selection }); OAuth2 Reference: https://developers.google.com/identity/protocols/oauth2/openid-connect#prompt Would love to see this feature in a future release! πŸš€ Thanks for the amazing platform! πŸ™

TL;DR
Developers are working with Google OAuth integration and Appwrite. Users face the issue of Google automatically logging them in without showing the consent screen, making it difficult to switch accounts. The developer suggests adding support for the prompt parameter in account.createOAuth2Session() to force Google to show the account selection screen. This would enhance the UX and is requested for a future release.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more