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
- Roles Enum Limitation in Kotlin SDK
The createMembership method in the Appwrite Kotlin SDK now requires List<io.appwrite.enums.Roles> instead of List<String>, but the predefined Roles enum only co...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Server Down
Appwrite services are down. When will they start working again?