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
- Fail to access the hosted site
Hi there I am facing an issue with the sites. My site is properly hosted on Appwrite but the issue is that when accessing the site from this URL https://instant...
- Error 503 Response object too large
I have a video embedded in an iframe. I've tried hosting the file with my site source, using appwrite storage and even via youtube. It works fine locally, works...
- endpoint variable
Appwrite Sites passes e.g. APPWRITE_SITE_API_ENDPOINT to the site, but i need this variable in Next.js in my Client-Side-Page. How can i pass it? Next.js only p...