Back

[SOLVED] Apple Sign In Flutter Redirect URL

  • 0
  • Flutter
  • Apple
  • Auth
Aarush Acharya
13 May, 2024, 03:14
TypeScript
Future<void> signInApple() async {
   await appwrite.account.createOAuth2Session(
        provider: OAuthProvider.apple,
        success: "https://cloud.appwrite.io/v1/auth/oauth2/success",
        failure: "https://cloud.appwrite.io/v1/auth/oauth2/failure");
  }```

Hey, this is my function code... I get an error re-direct URL does not exist I am using this on Flutter how can I... make it work, what should I put as a redirect URL
TL;DR
Developers discussing Apple Sign In Flutter Redirect URL. User was able to resolve the issue by removing the success and failure params from the function call. The user encountered an error about the redirect URL not existing. Solution: Update the function code by removing the success and failure parameters from the `createOAuth2Session` function call.
Steven
13 May, 2024, 03:16

Did you get any pop up to open your app?

Aarush Acharya
13 May, 2024, 03:19

nope

Aarush Acharya
13 May, 2024, 03:20
Aarush Acharya
13 May, 2024, 03:20

https://[DOMAIN]/v1/account/sessions/oauth2/callback/apple/[PROJECT ID] I am trying this as my

Aarush Acharya
13 May, 2024, 03:20

redirect url

Aarush Acharya
13 May, 2024, 03:22

I had a pop up which asked me my Face ID the it closed

Steven
13 May, 2024, 03:22

What device are you testing this on?

Aarush Acharya
13 May, 2024, 03:23

iPhone 13

Steven
13 May, 2024, 03:23

That was while authenticating, right? Not after

Aarush Acharya
13 May, 2024, 03:23

Yes while authenticating

Aarush Acharya
13 May, 2024, 03:23
Steven
13 May, 2024, 03:23

Please remove the success and failure params from the function call

Aarush Acharya
13 May, 2024, 03:23

This is what I see after

Aarush Acharya
13 May, 2024, 03:24

Understood

Aarush Acharya
13 May, 2024, 03:27

Hey @Steven it worked thank you

Aarush Acharya
13 May, 2024, 03:28

[Cosed] Apple Sign In Flutter Redirect URL

Steven
13 May, 2024, 03:30

[SOLVED] Apple Sign In Flutter Redirect URL

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more