
After a user logs in via GitHub OAuth, how can the app knowtheir GitHub username?
I could not see it in the session await account.getSession("current")
or account await account.get()

If I'm not wrong appwrite only gets the user email, so you can't get it directly from appwrite

The current session (await account.getSession("current")
) will have an access token which you can use the make an API call to GitHub and probably retrieve the username

Thank you @D5 @Drake 👍
Recommended threads
- Any example for using Appwrite with Verc...
Can not find an example on this.
- Best practice for calling 3P APIs with p...
Hey everyone! Looking for guidance on the recommended approach for securely calling third-party APIs from my Appwrite-hosted application. **Current Setup:** - ...
- [Bug] `collection` is an unusable attrib...
**Reproduction** - Create a string attribute called `collection` in Appwrite databases - Create a new document using the `node-appwrite` SDK and assign any str...
