Skip to content

Commit 80cb221

Browse files
committed
fix(internet-identity): clarify that requestAttributes keys is required
1 parent fc65fef commit 80cb221

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

skills/internet-identity/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ When the backend needs more than the user's principal (e.g., a verified email),
159159

160160
#### Available attribute keys
161161

162-
`requestAttributes({ keys })` accepts the following keys:
162+
`requestAttributes({ keys, nonce })` requires both `keys` and `nonce`: there is no default key set, you must pass an explicit list. The keys II currently accepts are:
163163

164164
| Key | What it IS | When to use |
165165
|---|---|---|
@@ -177,7 +177,7 @@ Request both `email` and `verified_email` if you want fallback behaviour: when t
177177
| `'apple'` | `openid:https://appleid.apple.com:` |
178178
| `'microsoft'` | `openid:https://login.microsoftonline.com/{tid}/v2.0:` (the `{tid}` part is literal: do not substitute a tenant ID into it) |
179179

180-
`keys` defaults to `['name', 'email', 'verified_email']`. Examples:
180+
The `keys` argument to `scopedKeys` is optional and defaults to `['name', 'email', 'verified_email']`. (`requestAttributes` itself has no default; the `scopedKeys` helper just builds the array you then pass to it.) Examples:
181181

182182
- `scopedKeys({ openIdProvider: 'google' })` → `['openid:https://accounts.google.com:name', 'openid:https://accounts.google.com:email', 'openid:https://accounts.google.com:verified_email']`
183183
- `scopedKeys({ openIdProvider: 'google', keys: ['email'] })` → `['openid:https://accounts.google.com:email']`

0 commit comments

Comments
 (0)