Hi all, so I want to use a custom URL for the success parameter, but I still want to get the session id query. Here is my current code:
let newSession = try await account.createOAuth2Session(
provider: "apple",
success: "path/{sessionId}",
)
How I can access the session id if I'm using a custom url for the success parameter?
For apple, using our SDK, you should omit the success parameter
The SDK automatically handles the session
But if I omit the success parameter, the users will see this error screen. If I pass the success parameter, this screen will not shown
Happened to me
What shows instead?
Nothing will be shown. It will just show the pop up to open my app, which I guess is the expected behavior? but when I open my app, it will crash because it can't get the cookies from the redirect URL
You're not supposed to try and get the cookie. Appwrite SDK handles it automatically
So, do you have any suggestion on how to solve this missing redirect URL error?
maybe you can use this as the success url:
appwrite-callback-[PROJECT_ID]://localhost/auth/oauth2/success
Either that or host your own page that redirects the user like the console does, but doesn't show the missing redirect url.
Recommended threads
- Deeplinking/hosting apple-app-site-assoc...
I'm trying to implement deeplinking so that after a user logs in, they are redirected to the place in my app I want them to go. As far as I understand, I need a...
- How to determine if a user is anonymous?
This is probably a silly question, but I have not yet found a good answer. Is there a method to determine if the current session is anonymous aside from seein...
- Do I need to upgrade my Appwrite plan?
So i am making a file hosting & sharing platform (voltzy.lol) and i am expecting approx 5-8 million visit per month and over 30 million uploads per month do i n...