diff --git a/v2/thirdparty/custom-ui/thirdparty-login.mdx b/v2/thirdparty/custom-ui/thirdparty-login.mdx index db304800b..ca551e658 100644 --- a/v2/thirdparty/custom-ui/thirdparty-login.mdx +++ b/v2/thirdparty/custom-ui/thirdparty-login.mdx @@ -311,6 +311,8 @@ This involves setting up the [react-native-apple-authentication library](https:/ Once the integration is done, you should call the `appleAuth.performRequest` function for iOS and the `appleAuthAndroid.signIn` function for Android. Either way, the result of the function will be a one time use auth code which you should send to your backend as shown in the next step. +A full example of this can be found in [our example app](https://github.com/supertokens/supertokens-react-native/blob/master/examples/with-thirdparty/apple.ts). + @@ -327,7 +329,7 @@ Coming Soon

Step 1) Fetching the authorisation token on the frontend

-For iOS you use the normal sign in with apple flow and then use the id token to login with SuperTokens +For iOS you use the normal sign in with apple flow and then use the authorization code to login with SuperTokens. You can see a full example of this in [our example app](https://github.com/supertokens/supertokens-ios/blob/master/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift). ```swift import UIKit @@ -369,7 +371,7 @@ fileprivate class ViewController: UIViewController, ASAuthorizationControllerPre

Step 1) Fetching the authorisation token on the frontend

-For flutter we use the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package, make sure to follow the prerequisites steps to get the package setup. After setup use the snippet below to trigger the apple sign in flow. +For flutter we use the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package, make sure to follow the prerequisites steps to get the package setup. After setup use the snippet below to trigger the apple sign in flow. You can see a full example of this in [our example app](https://github.com/supertokens/supertokens-flutter/blob/master/examples/with-thirdparty/lib/screens/login.dart#L130). ```dart import 'package:sign_in_with_apple/sign_in_with_apple.dart'; diff --git a/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx b/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx index b9789ad7d..3df93f51b 100644 --- a/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx +++ b/v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx @@ -314,6 +314,8 @@ This involves setting up the [react-native-apple-authentication library](https:/ Once the integration is done, you should call the `appleAuth.performRequest` function for iOS and the `appleAuthAndroid.signIn` function for Android. Either way, the result of the function will be a one time use auth code which you should send to your backend as shown in the next step. +A full example of this can be found in [our example app](https://github.com/supertokens/supertokens-react-native/blob/master/examples/with-thirdparty/apple.ts). +
@@ -330,7 +332,7 @@ Coming Soon

Step 1) Fetching the authorisation token on the frontend

-For iOS you use the normal sign in with apple flow and then use the id token to login with SuperTokens +For iOS you use the normal sign in with apple flow and then use the authorization code to login with SuperTokens. You can see a full example of this in [our example app](https://github.com/supertokens/supertokens-ios/blob/master/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift). ```swift import UIKit @@ -372,7 +374,7 @@ fileprivate class ViewController: UIViewController, ASAuthorizationControllerPre

Step 1) Fetching the authorisation token on the frontend

-For flutter we use the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package, make sure to follow the prerequisites steps to get the package setup. After setup use the snippet below to trigger the apple sign in flow. +For flutter we use the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package, make sure to follow the prerequisites steps to get the package setup. After setup use the snippet below to trigger the apple sign in flow. You can see a full example of this in [our example app](https://github.com/supertokens/supertokens-flutter/blob/master/examples/with-thirdparty/lib/screens/login.dart#L130). ```dart import 'package:sign_in_with_apple/sign_in_with_apple.dart'; diff --git a/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx b/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx index 34aa1754a..cb69b8817 100644 --- a/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx +++ b/v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx @@ -314,6 +314,8 @@ This involves setting up the [react-native-apple-authentication library](https:/ Once the integration is done, you should call the `appleAuth.performRequest` function for iOS and the `appleAuthAndroid.signIn` function for Android. Either way, the result of the function will be a one time use auth code which you should send to your backend as shown in the next step. +A full example of this can be found in [our example app](https://github.com/supertokens/supertokens-react-native/blob/master/examples/with-thirdparty/apple.ts). +
@@ -330,7 +332,7 @@ Coming Soon

Step 1) Fetching the authorisation token on the frontend

-For iOS you use the normal sign in with apple flow and then use the id token to login with SuperTokens +For iOS you use the normal sign in with apple flow and then use the authorization code to login with SuperTokens. You can see a full example of this in [our example app](https://github.com/supertokens/supertokens-ios/blob/master/examples/with-thirdparty/with-thirdparty/LoginScreen/LoginScreenViewController.swift). ```swift import UIKit @@ -372,7 +374,7 @@ fileprivate class ViewController: UIViewController, ASAuthorizationControllerPre

Step 1) Fetching the authorisation token on the frontend

-For flutter we use the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package, make sure to follow the prerequisites steps to get the package setup. After setup use the snippet below to trigger the apple sign in flow. +For flutter we use the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package, make sure to follow the prerequisites steps to get the package setup. After setup use the snippet below to trigger the apple sign in flow. You can see a full example of this in [our example app](https://github.com/supertokens/supertokens-flutter/blob/master/examples/with-thirdparty/lib/screens/login.dart#L130). ```dart import 'package:sign_in_with_apple/sign_in_with_apple.dart';