🐛 Bug Report: OAuth2 implementation does not enforce email retrieval
- Dominant language
- TypeScript
- Stars
- 57.4k
- Forks
- 5.7k
- Avg merge
- 16h 27m
- Merged PRs (30d)
- 291
Description
### 👟 Reproduction steps
Currently, when the user is presented with the Facebook oauth screen, the user can select 'Edit access" and then switch off the email.


This means that, after the user disables the email and clicks Continue, a new user will be created in Appwrite but without an email address.
Similar thing is happening with the Yandex OAuth2 adapter - users are created but without email address.
Discord post - https://discord.com/channels/564160730845151244/564175717521424424/1007611652750970900
### 👍 Expected behavior
Appwrite should extend the OAuth2 adapters to always enforce the retrieval of email address
### 👎 Actual Behavior
Users are created without an email address
### 🎲 Appwrite version
Version 0.15.x
### 💻 Operating system
Windows
### 🧱 Your Environment
_No response_
### 👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
### 🏢 Have you read the Code of Conduct?
- [X] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)
Contributor guide
Assessment
This issue has not been assessed yet.