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
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...