this is the endpoint that takes the auth code, requests an access token, and then creates an appwrite session: https://github.com/appwrite/appwrite/blob/master/app/controllers/api/account.php#L376-L400
did you get a chance to try it out? 🧐
not yet, will find some time though my php skills are not the greatest 😄
Oh I was just suggesting to use the API, not write any php code
oh, how dumb of me, lol
[SOLVED] Device authorization flow (social auth)
did more research and managed an attempt to test the request but
it says the provider is not enabled 🤔
am i missing something?
how did you make the request?
Either the OAuth2 provider in Appwrite isn't enabled or the project ID is incorrect
i ... found the issue
the github link is to the wrong function 😂
huh?
the request you linked had no projectId param
the above has it
was my bad there 😂
oh, sorry. you can send it as a query string like the one you linked does
yes it works, i just assumed there was no need for projectid (dumb of me)
it works as in you can exchange the device token for an appwrite oauth2 session?
haven't got to test with actual session only mockup
ah okay
im a bit squeezed between deadlines so i can only put like 5-10 mins
😦
Ugh....I couldn't get Google sign in to return an id token, but as I was testing, I noticed a serverAuthCode property. Maybe that can be passed to Appwrite to create the oauth2 session 🧐
Recommended threads
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...
- Flutter OAuth2 does not attach Google se...
Hi Appwrite team, I’m using Appwrite Auth in a Flutter mobile app and trying to upgrade an anonymous user to Google OAuth. Docs say that if there is already a...