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
- Google OAuth2 is not working
the Google OAuth2 is working perfectly in localhost, but when I bring it to production that means real domain, then when I clicked button signin nothing happene...
- Trouble Creating Database and Collection...
I’ve set up my project credentials (endpoint, project ID) and generated an API key. I’m currently focusing on creating only the database and collections (tables...
- DOWN GRADING FROM PRO
I previously subscribed to pro on one of my projects for trial but unfortunately ive been billed for this month, my aim was to try pro for one month, is there ...