appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK ๐Ÿงก
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
271 stars 58 forks source link

Suggest specific account (email) to use for signing in with OAuth #98

Open Re-Shard opened 2 weeks ago

Re-Shard commented 2 weeks ago

๐Ÿ”– Feature description

With most OAuth providers you can add a specific account (email adress) as prefered account to use for the OAuth protocol. An example for Github: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps

This is the flow for Microsoft: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow There you can send a login_hint but also a domain_hint as well.

๐ŸŽค Pitch

I am creating an account in advance before triggering an OAuth login to trigger some validation checks on the email domain. Locked account creation for the client, only possible with server side combined with the create user endpoint. I would like to send the email with the Oauth function, is that possible?

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

๐Ÿข Have you read the Code of Conduct?