#createOAuth2Session's success URL parameter with query

9 messages · Page 1 of 1 (latest)

vagrant pier
#

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?

robust scarab
#

The SDK automatically handles the session

vagrant pier
#

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

vagrant pier
#

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

robust scarab
vagrant pier
#

So, do you have any suggestion on how to solve this missing redirect URL error?