
So how do I locate it, is there a log that can be printed

not really. maybe you can follow this to see what to fill in where: https://dev.to/appwrite/apple-sign-in-with-appwrite-2576

Unfortunately, I configured it through this article

AppWrite has a logging system, in the client local, I see amplify, firebase their client SDK, all have local logging, so that I can analyze and trace

Additionally, I am able to use GitHub authorization, but why am I unable to retrieve the avatar of GitHub users? I have already included the necessary permissions in the scopes parameter.

@override Future<Either<Failure, dynamic>> loginByGithub() async { try { final session = await _account.createOAuth2Session( provider: 'github', scopes: ["read:user", "user:email"]); // final user = await _authAPI.currentUserAccount(); // print('xxx user ' + user!.toMap().toString()); // Why, I can't get the user profile picture? return right(session); } on AppwriteException catch (e, stackTrack) { return left(Failure(e.message ?? "error", stackTrack)); } catch (e, stackTrack) { return left(Failure(e.toString(), stackTrack)); } }

In the result of account.get(), why there is no avatar information.

account data : {$id: 64a80eb8da428e856ee0, $createdAt: 2023-07-07T13:10:17.216+00:00, $updatedAt: 2023-07-08T03:53:52.156+00:00, name: LiuYipeng, password: null, hash: null, hashOptions: null, registration: 2023-07-07T13:10:17.214+00:00, status: true, passwordUpdate: , email: 1611641037@qq.com, phone: , emailVerification: true, phoneVerification: false, prefs: {data: {}}}

You won't get the avatar url in account.get()
Instead do this,
account.getSession("current")
- it will return a session object, from there get the
providerAccessToken
- You would need to pass this token to the GitHub API, something like:
fetch("https://api.github.com/user", {
headers: {
Authorization: `Bearer ${providerAccessToken}`,
},
})```
4. And get the avatar_url from the response returned

Thank you especially for your reply, I will try it now, but the authorization document of AppWrite is too indetailed, and there is no detailed document

Docs will be new and improved soon 🙂

why without twitter auth provider in appwrite ?

I just tried it, you can get the avatar through the github api, I have a question, since you can call the github api through providerAccessToken to get information, why not help us wrap it inside appwrite? Does each different user provider need us to use their own platform's API, I think we can uniformly hand over to AppWrite to encapsulate information @Dakshie


I just tried it, you can get the avatar through the github api, I have a question, since you can call the github api through providerAccessToken to get information, why not help us wrap it inside appwrite? Does each different user provider need us to use their own platform's API, I think we can uniformly hand over to AppWrite to encapsulate information @Dakshie

So you are saying, having a function like account.getInfo() and it makes the call to the API for us and get the info? Yeah that would be cool That's where appwrite functions can come into play 🙂

Or maybe you can create an issue for that. Let someone else from the team guide you further )

yes ,you are right


I go to the docoment page and the screen is blank and nothing is displayed?

attributeForm-08a75dae.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length') at Array.lt (attributeForm-08a75dae.js:1:15662) at fe (attributeForm-08a75dae.js:1:21263) at ne (attributeForm-08a75dae.js:1:14375) at st (attributeForm-08a75dae.js:1:23239) at Je (index-110ed6ed.js:4:6338) at new Dt (attributeForm-08a75dae.js:1:24323) at Array.Pe (_page.svelte-df2a39bc.js:1:3122) at Xt (index-110ed6ed.js:1:793) at Array.W (cardGrid-f5da4ed1.js:1:965) at Xt (index-110ed6ed.js:1:793)

@Dakshie

Please create a separate <#1072905050399191082> post since this is a different topic

Did you get apple sign in working?

For reference, GitHub issue: https://github.com/appwrite/appwrite/issues/5782
Recommended threads
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
- Error sending push message from dashboar...
I am trying to implement appwrite fully into my app and am switching over from firebase. I registered FCM as a Provider and tried to send a push message via the...
- My organization deleted, how??
Getting error mesasges and I can't find my organization.
