Hey am just wondering if am not using my sdk ( am using rest api) and i have a login with google can I pass the oAuth2 token from the redirect url in the header when making a call? Like in the screenshot instead of the x fallback cookie I put the token
which oAuth2 token?
Aren’t we supposed to extract a code from the redirect url?
im not sure which code you're talking about. there are a couple
So what am trying to accomplish is similar to when creating a session with email and password I can grab the fallback cookies and use it in any subsequent request, after I authenticate the user with oAuth2 provider I don’t know what my header should be for subsequent requests
This looks like the OAuth2 Auth Code, which is something you shouldn't be handling.
in flutter mobile?
No I know how to do it with flutter, am using flutterflow right now with rest api call that’s why am lost, i have use oAuth2 with xano in flutterflow am trying it with appwrite now
You'll need to send the user to this URL: https://github.com/appwrite/sdk-for-flutter/blob/f8480fdeecfb23782bd5b33d0e2a7db44fc8c391/lib/services/account.dart#L477-L506
The sucess url should be a deeplink with a path of /auth/oauth2/success
. Then, you can pull the secret out like the SDK does: https://github.com/appwrite/sdk-for-flutter/blob/f8480fdeecfb23782bd5b33d0e2a7db44fc8c391/lib/src/client_io.dart#L319-L329
Thank I think I found what I need correct me if am wrong, I need to extract the value I circled in the picture with deep link right?
How do I mark this as solve
edit post and update the name
Recommended threads
- Trying to Figure out how to delete a use...
If i have a button in an app that allows a user to delete their account, can I not just call a function from my swift app to Appwrite to have the account delete...
- Expected a value of type 'bool', but got...
I am trying to get current User, but get this error message when I do. I get back user prefs, but error comes from trying account.get() So I am getting User. I ...
- Problem accessing api via local host.
I think i set the Endpoint correctly in my config.ts als the cloud.appwrite url but when i try to create a user I get this Error message: Access to XMLHttpReque...