Rank 2: Process
I could link my repo
Votes
2
Replies
12
Participants
Unknown
Messages
13
Rank 2: Process
I could link my repo
Rank 2: Process
It's the last part, the rest of my app is working well
Moderator
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
Admin
Sorry I am not
Admin
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)
Rank 2: Process
Ok thanks it's a bit over my head, mind if I send my freelancer here? I'm working with someone to finish it
Admin
Go for it
Rank 2: Process
Rank 2: Process
he said he's getting this error
Rank 2: Process
Rank 2: Process
is there a different approach to take?
Admin
Looks like the question was answered
Rank 3: Container
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