Skip to content

Commit bd31923

Browse files
committed
adds expo lib link to our docs for apple sign in
1 parent 2a97619 commit bd31923

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

v2/thirdparty/custom-ui/thirdparty-login.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,14 @@ This flow is not applicable for web apps.
307307

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

310-
This involves setting up the [react-native-apple-authentication library](https://github.com/invertase/react-native-apple-authentication) in your app. Checkout their `README` for steps on how to integrate their SDK into your application. The minimum scope required by SuperTokens is the one that gives the user's email (In case of Apple, that could be the user's actual email or the proxy email provided by Apple - it doesn't really matter).
310+
For react native apps, this involves setting up the [react-native-apple-authentication library](https://github.com/invertase/react-native-apple-authentication) in your app. Checkout their `README` for steps on how to integrate their SDK into your application. The minimum scope required by SuperTokens is the one that gives the user's email (In case of Apple, that could be the user's actual email or the proxy email provided by Apple - it doesn't really matter).
311311

312312
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.
313313

314314
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).
315315

316+
In case you are using Expo, you can use the [expo-apple-authentication](https://docs.expo.dev/versions/latest/sdk/apple-authentication/) library instead (not that this library only works on iOS).
317+
316318
</TabItem>
317319

318320
<TabItem value="android">

v2/thirdpartyemailpassword/custom-ui/thirdparty-login.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,14 @@ This flow is not applicable for web apps.
310310

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

313-
This involves setting up the [react-native-apple-authentication library](https://github.com/invertase/react-native-apple-authentication) in your app. Checkout their `README` for steps on how to integrate their SDK into your application. The minimum scope required by SuperTokens is the one that gives the user's email (In case of Apple, that could be the user's actual email or the proxy email provided by Apple - it doesn't really matter).
313+
For react native apps, this involves setting up the [react-native-apple-authentication library](https://github.com/invertase/react-native-apple-authentication) in your app. Checkout their `README` for steps on how to integrate their SDK into your application. The minimum scope required by SuperTokens is the one that gives the user's email (In case of Apple, that could be the user's actual email or the proxy email provided by Apple - it doesn't really matter).
314314

315315
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.
316316

317317
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).
318318

319+
In case you are using Expo, you can use the [expo-apple-authentication](https://docs.expo.dev/versions/latest/sdk/apple-authentication/) library instead (not that this library only works on iOS).
320+
319321
</TabItem>
320322

321323
<TabItem value="android">

v2/thirdpartypasswordless/custom-ui/thirdparty-login.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,14 @@ This flow is not applicable for web apps.
310310

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

313-
This involves setting up the [react-native-apple-authentication library](https://github.com/invertase/react-native-apple-authentication) in your app. Checkout their `README` for steps on how to integrate their SDK into your application. The minimum scope required by SuperTokens is the one that gives the user's email (In case of Apple, that could be the user's actual email or the proxy email provided by Apple - it doesn't really matter).
313+
For react native apps, this involves setting up the [react-native-apple-authentication library](https://github.com/invertase/react-native-apple-authentication) in your app. Checkout their `README` for steps on how to integrate their SDK into your application. The minimum scope required by SuperTokens is the one that gives the user's email (In case of Apple, that could be the user's actual email or the proxy email provided by Apple - it doesn't really matter).
314314

315315
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.
316316

317317
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).
318318

319+
In case you are using Expo, you can use the [expo-apple-authentication](https://docs.expo.dev/versions/latest/sdk/apple-authentication/) library instead (not that this library only works on iOS).
320+
319321
</TabItem>
320322

321323
<TabItem value="android">

0 commit comments

Comments
 (0)