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
docs: sign-in with Internet Identity on id.ai (#519)
* docs: sign-in with Internet Identity on id.ai
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* 📄 Update LLMs.txt snapshot for PR review
---------
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .llms-snapshots/llms-full.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -902,12 +902,12 @@ Internet Identity sign-in can be customized with options that let you control se
902
902
| `windowed` | `boolean` | `true` | By default, the authentication flow is presented in a popup window on desktop that is automatically centered on the browser. This behavior can be turned off by setting the option to `false`, causing the authentication flow to happen in a separate tab instead. |
903
903
| `derivationOrigin` | `string` or `URL` | | The main domain to be used to ensure your users are identified with the same public ID, regardless of which of your satellite's URLs they use to access your application. |
904
904
| `onProgress` | `(progress) => void` | | Callback for provider sign-in and user creation/loading. |
905
-
| `domain` | `internetcomputer.org` or `ic0.app` | `internetcomputer.org` | The domain on which to open Internet Identity. |
905
+
| `domain` | `internetcomputer.org` or `ic0.app` or `id.ai` | `internetcomputer.org` | The domain on which to open Internet Identity. |
Copy file name to clipboardExpand all lines: docs/build/authentication/development.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,21 +166,39 @@ await signIn({
166
166
167
167
Internet Identity sign-in can be customized with options that let you control session lifetime, provider configuration, or track progress during the flow.
|`maxTimeToLiveInNanoseconds`|`BigInt(4 * 60 * 60 * 1000 * 1000 * 1000)`|**4 hours**| Maximum lifetime of the user's session in **nanoseconds**. Once expired, the session cannot be extended. |
172
-
|`windowed`|`boolean`|`true`| By default, the authentication flow is presented in a popup window on desktop that is automatically centered on the browser. This behavior can be turned off by setting the option to `false`, causing the authentication flow to happen in a separate tab instead. |
173
-
|`derivationOrigin`|`string` or `URL`|| The main domain to be used to ensure your users are identified with the same public ID, regardless of which of your satellite's URLs they use to access your application. |
174
-
|`onProgress`|`(progress) => void`|| Callback for provider sign-in and user creation/loading. |
175
-
|`domain`|`internetcomputer.org` or `ic0.app`|`internetcomputer.org`| The domain on which to open Internet Identity. |
|`maxTimeToLiveInNanoseconds`|`BigInt(4 * 60 * 60 * 1000 * 1000 * 1000)`|**4 hours**| Maximum lifetime of the user's session in **nanoseconds**. Once expired, the session cannot be extended. |
172
+
|`windowed`|`boolean`|`true`| By default, the authentication flow is presented in a popup window on desktop that is automatically centered on the browser. This behavior can be turned off by setting the option to `false`, causing the authentication flow to happen in a separate tab instead. |
173
+
|`derivationOrigin`|`string` or `URL`|| The main domain to be used to ensure your users are identified with the same public ID, regardless of which of your satellite's URLs they use to access your application. |
174
+
|`onProgress`|`(progress) => void`|| Callback for provider sign-in and user creation/loading. |
175
+
|`domain`|`internetcomputer.org` or `ic0.app`or `id.ai`|`internetcomputer.org`| The domain on which to open Internet Identity. |
176
176
177
177
Example with options:
178
178
179
179
```typescript
180
+
// Sign-in with id.ai
181
+
awaitsignIn({
182
+
ii: {
183
+
options: {
184
+
domain: "id.ai"
185
+
}
186
+
}
187
+
});
188
+
189
+
// Sign-in with a specific session duration
190
+
awaitsignIn({
191
+
ii: {
192
+
options: {
193
+
maxTimeToLiveInNanoseconds: BigInt(24*60*60*1000*1000*1000) // 1 day
194
+
}
195
+
}
196
+
});
197
+
198
+
// Sign-in with a derivation origin and progression callback
180
199
awaitsignIn({
181
200
ii: {
182
201
options: {
183
-
maxTimeToLiveInNanoseconds: BigInt(24*60*60*1000*1000*1000), // 1 day
0 commit comments