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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...