
I could link my repo

It's the last part, the rest of my app is working well

Your problem seems like you're using capacitor, and appwrite like a js/web app, so it will not go back to the app since the SDK is not built for that because you have a PWA

Sorry I am not

So typically, for mobile apps, you wouldn't pass a success url. The user will end up on an Appwrite page that redirects to: appwrite-callback-[PROJECT_ID]://[...]
which is a url scheme that the app is configured to pick up so the user is redirected into the app. Then, the sdk automatically extracts the cookie from the url and stores it for future use.
On web, the cookie is automatically set when the user is redirected back to the url you put.
Since you're using capacitor, I'm not sure if the cookie will be automatically set. If not, you'd have to manually extract the cookie after redirecting back to your app on a specific path (/auth/oauth2/success
)

Ok thanks it's a bit over my head, mind if I send my freelancer here? I'm working with someone to finish it

Go for it


he said he's getting this error


is there a different approach to take?

Looks like the question was answered

capacitor is extracting cookie in only web (pwa) but if i redirect to mobile app it does not set cookies. is it logical way to extract cookies in pwa to set variables by using success url and then redirect to mobile app with these variables to set cookie in ios/android? in this manner, i am only using web-sdk not apple sdk. @Drake @D5
Recommended threads
- Can't create a function. The user interf...
I am trying to create a server-side function. I am on the free tier. **I already have three functions that work properly** that I created a few months ago. Now,...
- Data Diet Needed
I love the nested related data... but can we request limited data? I think my requests need to go on a diet. I return my courses, and the units all come with th...
- Appwrite Cloud Ui and Server Crashes rep...
I am having trouble with Appwrite cloud and server crashes and Ui crashed repeatedly. Raised a GitHub issue as well. https://github.com/appwrite/appwrite/issues...
