You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 9, 2026. It is now read-only.
@@ -31,53 +31,67 @@ Use passage-flex-react-native to implement Passkey Flex in your Swift applicatio
31
31
32
32
### Check Prerequisites
33
33
34
+
34
35
<p>
35
-
You'll need a free Passage account and a Passkey Flex app set up in <ahref="https://console.passage.id/">Passage Console</a> to get started.<br />
36
-
<sub><ahref="https://docs.passage.id/home#passage-console">Learn more about Passage Console →</a></sub>
36
+
You'll need a free Passage account and a Passkey Flex app set up in <ahref="https://console.passage.id/">Passage Console</a> to get started.<br />
37
+
<sub><ahref="https://docs.passage.id/home#passage-console">Learn more about Passage Console →</a></sub>
37
38
</p>
38
39
39
-
Add an Android and/or iOS app in the Native Apps section.
40
+
<p>
41
+
Add an Android and/or iOS app in the Native Apps section for your Passkey Flex app.
42
+
</p>
43
+
44
+
<p>
45
+
<i>Note: When you add your Native App info, you can generate the associated domain file for that app if you haven’t already created it yourself, as shown:</i> <br /><imgwidth="600"src="https://docs.passage.id/_next/image?url=%2Fimages%2Fv1-doc-images%2Fios-download-config-file.png&w=3840&q=75" />
46
+
</p>
40
47
41
-
When you add your Native App info, you can generate the associated domain file for that app if you haven’t already created it yourself, as shown below:
npm i --save @passageidentity/passage-flex-react-native
47
52
```
48
53
49
-
#### Expo
54
+
###Configure
50
55
51
-
Add plugin in app.json:
52
-
53
-
```json
54
-
"plugins": [
55
-
"@passageidentity/passage-flex-react-native"
56
-
]
57
-
```
58
-
59
-
Add `ASSOCIATED_DOMAIN` value to your app's `.env` file:
56
+
> [!IMPORTANT]
57
+
> In order for passkeys to work, you’ll need to associate your native app(s) with the public web domain you assigned to your Passkey Flex app.
58
+
>
59
+
> Android requires an `assetlinks.json` file configured and hosted <br /><sub>Learn more about <ahref="https://developer.android.com/identity/sign-in/credential-manager#add-support-dal">Adding support for Digital Asset Links →</a></sub>
60
+
>
61
+
> Apple requires an `apple-app-site-association` file configured and hosted <br /><sub>Learn more about <ahref="https://developer.apple.com/documentation/Xcode/supporting-associated-domains">Supporting associated domains →</a></sub>
62
+
63
+
64
+
<details>
65
+
<summary><b>Expo Configuration</b></summary>
66
+
67
+
<br />
68
+
69
+
Add the `passage-flex-react-native` expo plugin in `app.json`:
70
+
71
+
```json
72
+
"plugins": [
73
+
"@passageidentity/passage-flex-react-native"
74
+
]
75
+
```
60
76
77
+
Add `ASSOCIATED_DOMAIN` value to your app's `.env` file:
78
+
61
79
```
62
-
ASSOCIATED_DOMAIN=example.com
80
+
ASSOCIATED_DOMAIN=example.com
63
81
```
64
-
82
+
65
83
Run the following:
66
84
```
67
85
npx expo prebuild
68
86
```
69
87
70
-
#### Bare React Native
71
-
72
-
See our [Passkey Complete documentation](https://docs.passage.id/complete/cross-platform-passkey-configuration/cross-platform-ios-configuration) for setting up a React Native app for passkeys and Passage.
73
-
74
-
#### Hosted associated domains files
75
-
76
-
In order for passkeys to work, you’ll need to associate your native app(s) with the public web domain you assigned to your Passkey Flex app.
77
-
78
-
Android requires an `assetlinks.json` file configured and hosted (learn more [here](https://developer.android.com/identity/sign-in/credential-manager#add-support-dal)).
88
+
</details>
79
89
80
-
Apple requires an `apple-app-site-association` file configured and hosted (learn more [here](https://developer.apple.com/documentation/Xcode/supporting-associated-domains)).
See our <ahref="https://docs.passage.id/complete/cross-platform-passkey-configuration/cross-platform-ios-configuration">Passkey Complete documentation</a> for setting up a React Native app for passkeys and Passkey Flex.
94
+
</details>
81
95
82
96
83
97
### Import
@@ -92,7 +106,7 @@ const passageFlex = new PassageFlex('YOUR_PASSAGE_APP_ID');
92
106
93
107
### Go Passwordless
94
108
95
-
Find more details about Passkey Flex on our [Passkey Flex Documentation](https://docs.passage.id/flex) page.
109
+
Check out the [API Reference](#api-reference) below, along with more details about Passkey Flex on our [Passkey Flex Documentation](https://docs.passage.id/flex) page.
0 commit comments