Rank 1: Thread
So how do I locate it, is there a log that can be printed
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
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
Rank 1: Thread
Unfortunately, I configured it through this article
Rank 1: Thread
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
Rank 1: Thread
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.
Rank 1: Thread
@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));
}
}
Rank 1: Thread
In the result of account.get(), why there is no avatar information.
Rank 1: Thread
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")providerAccessTokenfetch("https://api.github.com/user", { headers: { Authorization: `Bearer ${providerAccessToken}`, }, })```4. And get the avatar_url from the response returnedRank 1: Thread
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 🙂
Rank 1: Thread
why without twitter auth provider in appwrite ?
Rank 1: Thread
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
Rank 1: Thread
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 :)
Rank 1: Thread
yes ,you are right
Rank 1: Thread
Rank 1: Thread
I go to the docoment page and the screen is blank and nothing is displayed?
Rank 1: Thread
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)
Rank 1: Thread
@Dakshie
Please create a separate #channel 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