Skip to content

Commit

Permalink
Add links to example app
Browse files Browse the repository at this point in the history
  • Loading branch information
nkshah2 committed Nov 21, 2023
1 parent 3f5e603 commit 895b612
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions v2/thirdparty/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

</TabItem>

<TabItem value="android">
Expand All @@ -327,7 +329,7 @@ Coming Soon

<h4>Step 1) Fetching the authorisation token on the frontend</h4>

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
Expand Down Expand Up @@ -369,7 +371,7 @@ fileprivate class ViewController: UIViewController, ASAuthorizationControllerPre

<h4>Step 1) Fetching the authorisation token on the frontend</h4>

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';
Expand Down
6 changes: 4 additions & 2 deletions v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

</TabItem>

<TabItem value="android">
Expand All @@ -330,7 +332,7 @@ Coming Soon

<h4>Step 1) Fetching the authorisation token on the frontend</h4>

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
Expand Down Expand Up @@ -372,7 +374,7 @@ fileprivate class ViewController: UIViewController, ASAuthorizationControllerPre

<h4>Step 1) Fetching the authorisation token on the frontend</h4>

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';
Expand Down
6 changes: 4 additions & 2 deletions v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

</TabItem>

<TabItem value="android">
Expand All @@ -330,7 +332,7 @@ Coming Soon

<h4>Step 1) Fetching the authorisation token on the frontend</h4>

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
Expand Down Expand Up @@ -372,7 +374,7 @@ fileprivate class ViewController: UIViewController, ASAuthorizationControllerPre

<h4>Step 1) Fetching the authorisation token on the frontend</h4>

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';
Expand Down

0 comments on commit 895b612

Please sign in to comment.