ovr 7.0.0-next.3 → 7.0.0-next.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +208 -0
  2. package/dist/auth/client-source.d.ts +2 -2
  3. package/dist/auth/client-source.d.ts.map +1 -1
  4. package/dist/auth/client-source.js +2 -2
  5. package/dist/auth/client.d.ts +7 -1
  6. package/dist/auth/client.d.ts.map +1 -1
  7. package/dist/auth/client.js +47 -6
  8. package/dist/auth/configure.d.ts +26 -8
  9. package/dist/auth/configure.d.ts.map +1 -1
  10. package/dist/auth/configure.js +211 -6
  11. package/dist/auth/index.d.ts +73 -4
  12. package/dist/auth/index.d.ts.map +1 -1
  13. package/dist/auth/index.js +42 -2
  14. package/dist/auth/oauth.d.ts +7 -0
  15. package/dist/auth/oauth.d.ts.map +1 -1
  16. package/dist/auth/oauth.js +4 -2
  17. package/dist/auth/passkey.d.ts +23 -2
  18. package/dist/auth/passkey.d.ts.map +1 -1
  19. package/dist/auth/passkey.js +36 -15
  20. package/dist/auth/state.d.ts +6 -0
  21. package/dist/auth/state.d.ts.map +1 -1
  22. package/dist/auth/state.js +28 -5
  23. package/dist/auth/storage.d.ts +52 -0
  24. package/dist/auth/storage.d.ts.map +1 -1
  25. package/dist/auth/storage.js +80 -3
  26. package/dist/context/index.d.ts +2 -0
  27. package/dist/context/index.d.ts.map +1 -1
  28. package/dist/context/index.js +6 -3
  29. package/dist/form/index.d.ts +239 -31
  30. package/dist/form/index.d.ts.map +1 -1
  31. package/dist/form/index.js +656 -63
  32. package/dist/jsx/elements.d.ts +2 -1
  33. package/dist/jsx/elements.d.ts.map +1 -1
  34. package/dist/markdown/index.d.ts +4 -2
  35. package/dist/markdown/index.d.ts.map +1 -1
  36. package/dist/markdown/index.js +170 -4
  37. package/dist/mcp/index.d.ts +1 -1
  38. package/dist/mcp/index.d.ts.map +1 -1
  39. package/dist/mcp/index.js +195 -175
  40. package/dist/route/index.d.ts +9 -2
  41. package/dist/route/index.d.ts.map +1 -1
  42. package/dist/route/index.js +19 -12
  43. package/dist/schema/index.d.ts +88 -19
  44. package/dist/schema/index.d.ts.map +1 -1
  45. package/dist/schema/index.js +40 -13
  46. package/dist/table/index.js +1 -1
  47. package/dist/util/index.d.ts +2 -2
  48. package/dist/util/index.js +3 -3
  49. package/package.json +1 -1
  50. package/src/auth/client-source.ts +2 -2
  51. package/src/auth/client.ts +48 -4
  52. package/src/auth/configure.ts +227 -13
  53. package/src/auth/index.ts +89 -4
  54. package/src/auth/oauth.ts +4 -2
  55. package/src/auth/passkey.ts +55 -20
  56. package/src/auth/state.ts +32 -7
  57. package/src/auth/storage.ts +90 -3
  58. package/src/context/index.ts +13 -2
  59. package/src/form/index.ts +1174 -193
  60. package/src/jsx/elements.ts +8 -1
  61. package/src/markdown/index.ts +186 -7
  62. package/src/mcp/conformance.2025-11-25.yml +3 -1
  63. package/src/mcp/conformance.2026-07-28.yml +7 -2
  64. package/src/mcp/index.ts +242 -218
  65. package/src/route/index.ts +22 -13
  66. package/src/schema/index.ts +208 -54
  67. package/src/table/index.ts +1 -1
  68. package/src/util/index.ts +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,213 @@
1
1
  # ovr
2
2
 
3
+ ## 7.0.0-next.31
4
+
5
+ ### Minor Changes
6
+
7
+ - cff818b: `auth.agents(c)` lists the agents the signed-in user has connected, each with its `id`, the `name` it gave when it was approved, when it was `connected`, and when the connection `expires`. It replaces querying `auth_tokens` yourself. `auth_tokens` has a `name` column for it, in the `auth:1` migration.
8
+
9
+ ## 7.0.0-next.30
10
+
11
+ ### Minor Changes
12
+
13
+ - f1fd8db: - The MCP endpoint no longer serves resources: `resources/list`, `resources/templates/list`, and `resources/read` are gone, with the `page://` names. An agent reads a page with its GET route's tool, as every client we connected already did. A file in a tool's result is named by its address.
14
+ - A tool whose route answers with JSON, such as `c.json()`, gives the value as `structuredContent` beside the text, when it is an object.
15
+ - `auth.consent(c)` returns the host the user goes back to as `returns`, where it was `redirect`, since it is a host and not an address.
16
+
17
+ ## 7.0.0-next.29
18
+
19
+ ### Minor Changes
20
+
21
+ - b7f68be: A tool's name no longer ends with a hash when its pattern has punctuation: `/@:username` is `get_username`, where it was `get_username_1jl2rtc`, and `/api_keys` is `get_api_keys`. Two described routes whose names would then be the same, such as `/a/b` and `/a_b`, throw when the app starts, as other clashing names do. Only a name longer than 64 characters still ends with a hash.
22
+
23
+ ## 7.0.0-next.28
24
+
25
+ ### Patch Changes
26
+
27
+ - 6b5218e: A `<script>` takes any `type`, so a block of data such as `<script type="application/ld+json">` type checks. `module`, `importmap`, `speculationrules`, `application/ld+json`, and `application/json` are still suggested.
28
+
29
+ ## 7.0.0-next.27
30
+
31
+ ### Patch Changes
32
+
33
+ - c7045d9: A JSON Schema for a literal or an enum says its values' type beside them, such as `{ "type": "string", "enum": ["dinner", "lunch"] }`, so a select, radio, or checkboxes field in an MCP tool's input has a type, which some clients and directories require of every parameter. Values of several types list each one.
34
+
35
+ ## 7.0.0-next.26
36
+
37
+ ### Minor Changes
38
+
39
+ - 23ac836: - An MCP tool has a `title`, the first sentence of its route's description.
40
+ - A tool says `destructiveHint`: `true` for one that writes and `false` for one that reads. Clients already assumed a write may be destructive, so they behave as before, and directories that require the hint now get it.
41
+ - `describe(description, { destructive: false })` marks a route that only adds, such as one that creates a record, and never changes or deletes what is there. Its tool says `destructiveHint: false`, so a client need not confirm it. `route.tool.destructive` reads it.
42
+
43
+ ## 7.0.0-next.25
44
+
45
+ ### Patch Changes
46
+
47
+ - d82e9b9: The error for `preprocess()` on a table column says what to do: convert the value in your handler before inserting, or have the field reject what should not be stored.
48
+
49
+ ## 7.0.0-next.24
50
+
51
+ ### Patch Changes
52
+
53
+ - A tool's form lists every choice given as the page renders, however many there are.
54
+
55
+ ## 7.0.0-next.23
56
+
57
+ ### Patch Changes
58
+
59
+ - 07985dd: A tool's form with more than 20 choices given as the page renders lists the first five and how many there are, such as `options: 5 of 70`, so a page with a select of every record stays short for an agent. A form an agent submits itself still lists every choice.
60
+
61
+ ## 7.0.0-next.22
62
+
63
+ ### Patch Changes
64
+
65
+ - aec8805: When adding a passkey asks for a recent sign-in, the `Add` form confirms the person with a passkey they already have, and they press the button once more to add the new one. They no longer sign out and in again.
66
+
67
+ ## 7.0.0-next.21
68
+
69
+ ### Patch Changes
70
+
71
+ - cdfc7de: Adding a passkey asks for a sign-in within the last ten minutes, in that browser. A passkey outlasts the session that adds it, so a session taken over later cannot make itself a permanent way in. The form says to sign in again.
72
+
73
+ ## 7.0.0-next.20
74
+
75
+ ### Patch Changes
76
+
77
+ - b226add: - A list reads its rows in one pass. Before, a request with many rows cost the whole form again for every cell, so a large one could hold the server for seconds. A list also takes no more rows in one request than its `max()`, or 1,000 without one.
78
+ - A `_return` path with a tab or a new line in it, which a browser reads as another site, is not followed after sign-in.
79
+ - Form state in a URL shows no more rows of a list than it takes, and never sets a row's hidden value.
80
+ - The page a sign-in link opens is sent with `Referrer-Policy: no-referrer`.
81
+ - A file's name in an agent's tool result is only a name.
82
+ - A write that redirects answers an agent `Redirected to /recipes`, without the `Done.` that next.18 put before it.
83
+
84
+ ## 7.0.0-next.19
85
+
86
+ ### Minor Changes
87
+
88
+ - 67d0646: - `result.updates` from `c.data()` is what a request sets, to update a record with: each field it sent, `null` for one sent empty, and nothing for one it left out, which keeps its value. A form sends every field it has, and an agent's tool call only the arguments it gives, so an agent that leaves a field out no longer clears it. `database.sql.set(table, result.updates)` writes it.
89
+ - A page a route sends with `Content-Disposition: attachment` is HTML for an agent too, and its tool result is the file, an embedded resource, where before it was read as Markdown. Use it for a page an agent passes on, such as one to print.
90
+
91
+ ## 7.0.0-next.18
92
+
93
+ ### Minor Changes
94
+
95
+ - d47e587: An agent's tool call that writes and redirects to a page is answered with one line, such as `Done. Redirected to /recipes`, where before it got the whole page it redirected to. A read still follows its redirect. An agent that needs the page reads it, so put what it needs after a write, such as a new record's ID, in the address.
96
+
97
+ ## 7.0.0-next.17
98
+
99
+ ### Patch Changes
100
+
101
+ - 73ab2d5: - A date, date and time, month, week, time, or color field checks its value's format, and that a date is a real day. Before, any text passed, so an agent's `11/12/2026` reached the handler and failed there. It now gets an issue such as "Enter a date as YYYY-MM-DD".
102
+ - A sign-in link lasts five minutes, and `auth.link` no longer takes `minutes`.
103
+
104
+ ## 7.0.0-next.16
105
+
106
+ ### Minor Changes
107
+
108
+ - 9d8f561: - A passkey has what tells it apart in a list: `created`, the `origin` it was made at, and a `name`, which the `Add` form takes as an optional field.
109
+ - `auth.link(user, { origin, minutes })` makes a link that signs a user in once, for an origin where they have no passkey or after losing their device. It opens the authentication `page`, where `<Link />` from `auth.forms(c)` is the button that signs them in. Only the link's hash is stored, in the new `auth_links` table.
110
+ - `auth:1` changed for these, since v7 is not released: `auth_credentials` has three more columns and `auth_links` is new. A database migrated with an earlier prerelease needs the same changes made by hand, and the migration's checksum updated.
111
+
112
+ ## 7.0.0-next.15
113
+
114
+ ### Minor Changes
115
+
116
+ - 3d16902: `auth.forms(c)` has an `Add` form that adds another passkey to the account signed in, such as for a second device or one that replaces a lost device. It asks for a passkey for the same account, skips an authenticator that already holds one of the account's, and returns to the page it is on. The docs show how to remove a passkey and how to sign a user in once at a new origin so they can add one there.
117
+
118
+ ## 7.0.0-next.14
119
+
120
+ ### Patch Changes
121
+
122
+ - a1503de: - A persisted `lines()` keeps each line of up to 512 characters, where before the whole text had that limit. The same goes for each value of a checkbox group or a select with `multiple()`.
123
+ - Attributes passed to a radio or checkbox group, such as `class` and `id`, are its fieldset's, as a list's are. Before, every box had them. Each box still has what `control()` set, and `required`.
124
+ - A radio or checkbox group's description follows its legend, before its options, as a list's does.
125
+
126
+ ## 7.0.0-next.13
127
+
128
+ ### Minor Changes
129
+
130
+ - 50bd4db: - `Field.hint(text)` is what people read under a control in place of the field's description, for a description written to be complete for an agent. Agents still read the description, and an empty hint shows people nothing. A list's table lists each column's hint.
131
+ - A label in `options` given as a form renders may be an element, such as an image. An agent reading the page reads an image in a label by its `alt`.
132
+
133
+ ## 7.0.0-next.12
134
+
135
+ ### Patch Changes
136
+
137
+ - 55bf74e: A list's table is in a `<div>` of its own, so a wide table can scroll sideways alone, with `overflow-x: auto` on it, and the text around it keeps the fieldset's width.
138
+
139
+ ## 7.0.0-next.11
140
+
141
+ ### Patch Changes
142
+
143
+ - ac0b834: - A list's description follows its legend, before the rows it explains.
144
+ - In a list's table, a column's heading holds only its label, which names each cell, and the fields' descriptions are listed once under the table, where a long one has room.
145
+ - Attributes passed to a list, such as `class` and `id`, are its fieldset's. Before, each row's control had them and the fieldset had none.
146
+ - An issue shown under a list says the field by its label, such as "Row 2, Ingredient: Required field".
147
+
148
+ ## 7.0.0-next.10
149
+
150
+ ### Minor Changes
151
+
152
+ - 5e45c54: - `Field.select()`, `Field.radio()`, and `Field.checkboxes()` take an object of each value and its label, such as `Field.select({ dinner: "Dinner", crockpot: "Slow cooker" })`. People see the label, the value is what is sent, and the tool's description tells agents each value's label. `options` given as a form renders takes the same, such as `{ [recipe.id]: recipe.title }`, which a list passes to each row.
153
+ - `placeholder` on a select is the text of its empty first choice, such as `control({ placeholder: "Any meal" })`. A select that must be chosen starts with that choice too when it has one.
154
+ - A list of several fields renders as a table: a column for each field, named and described once in its heading, and a row for each item with each cell's control and issue. A list of one field is unchanged.
155
+
156
+ ## 7.0.0-next.9
157
+
158
+ ### Patch Changes
159
+
160
+ - f5b3830: - A table that lays out a list's rows is left out of the page an agent reads through MCP, since the tool's form already lists the items as the array it takes. In a table that is kept, a checkbox says when it is checked and a select shows the option chosen.
161
+ - A row's control from `component` is no longer read with a description it may not render. The default layout, which renders each cell's description, still is.
162
+ - An issue of a row that is not shown again, in a list that is not persisted or has too many rows to keep, is shown under the list and says where it was, such as "Row 2, name: Required field".
163
+ - `min()` and `max()` say "At least 2" and "At most 7", and "At most 80 characters" for text, instead of "Expected maximum 7".
164
+
165
+ ## 7.0.0-next.8
166
+
167
+ ### Minor Changes
168
+
169
+ - b70f101: - `min()` and `max()` count an array's items: `Schema.array(schema).max(5)`, `Field.textarea().lines().max(10)`, `Field.checkboxes(tags).max(3)`, and `Field.list(item).min(2)`. They are `minItems` and `maxItems` in its JSON Schema. Before `lines()`, they still check each line's text.
170
+ - `Field.list(item).control({ rows })` sets how many rows the list shows wherever it renders, and `rows` on one form overrides it, as with any field's attributes. A list never shows more rows than its `max()`, so a full list has no empty row.
171
+
172
+ ## 7.0.0-next.7
173
+
174
+ ### Minor Changes
175
+
176
+ - 63bc0c6: `Field.lines()` is now `Field.textarea().lines()`: a textarea is text, and `lines()` takes it as a list of its lines. Each line is checked as the textarea checks its text, so `Field.textarea().max(80).lines()` limits each line, and its label, description, and control attributes are kept.
177
+
178
+ ## 7.0.0-next.6
179
+
180
+ ### Minor Changes
181
+
182
+ - 8ae55b4: `Field.list()` and `Field.lines()` are lists a route gets as an array, from people and agents alike, so one route serves both.
183
+
184
+ - `Field.lines()` is a list of text, such as steps or tags. People write one on each line of a textarea and agents send an array of strings.
185
+ - `Field.list(item)` is a list of items in order, where an item may repeat. Each item is one field, such as `Field.list(Field.select(Schema.string().uuid()))`, or several by name, such as `Field.list({ amount: Field.number(), name: Field.text() })`. It renders a row for each item and an empty one, and agents send an array. `rows` sets how many rows to show, and `component` gives each row's components for a custom layout.
186
+ - An agent reading an edit form's page through MCP sees a list's current items as the array its tool takes.
187
+
188
+ ### Patch Changes
189
+
190
+ - 8ae55b4: - A select that may be left empty, such as `Field.select(options).optional()`, starts with an empty choice. Before, the browser chose its first option, so it could not be left empty.
191
+ - Text sent to a number field, such as an agent's `"Keep"`, is answered with "Enter a number" instead of "Required field". A number field left empty is still a required field.
192
+ - A date, time, month, week, or color field without a description of its own ends its format as a sentence, such as `Date as YYYY-MM-DD.`
193
+
194
+ ## 7.0.0-next.5
195
+
196
+ ### Minor Changes
197
+
198
+ - 6cdc44e: `Field.taken(message)` is what to say when a user already has a public value no two users share, such as a username. Registration checks a users table's `taken()` fields before the passkey prompt and shows the message on the field. Other conflicts, such as an email's, stay generic.
199
+
200
+ ### Patch Changes
201
+
202
+ - 8f8e748: - A registration field that fails its schema shows its own message, such as a `refine()`'s, in place of "Check this field." The registration options endpoint answers 422 with `{ fields: { name: message } }`.
203
+ - The agents docs give both codes for a missing resource: -32602, and -32002 for clients of the 2025 versions.
204
+
205
+ ## 7.0.0-next.4
206
+
207
+ ### Patch Changes
208
+
209
+ - 554b09d: A field's description joined with more, such as a date's format, always ends as a sentence, whether or not the description has its own period.
210
+
3
211
  ## 7.0.0-next.3
4
212
 
5
213
  ### Patch Changes
@@ -1,3 +1,3 @@
1
- export declare const source = "export function listen(e,t,n,r){let i=document.getElementById(e),a=i?.closest(`form`),o=i?.previousElementSibling,s=a?.querySelector(`[data-passkey-error]:not([data-passkey-fallback])`)??o;if(!(a instanceof HTMLFormElement)||!(s instanceof HTMLElement))return;s!==o&&o instanceof HTMLElement&&(o.hidden=!0);let c=e=>{let t=a.elements.namedItem(e);if(t instanceof HTMLInputElement)return t;let n=document.createElement(`input`);return n.type=`hidden`,n.name=e,a.append(n),n},l=c(`credential`),u=c(`ceremony`),d=!1,f=!1,p=!1,m,h=0,g,_=()=>`Too many requests. Try again in ${Math.ceil((h-Date.now())/1e3)} seconds.`,v=()=>{clearTimeout(g),g=void 0,d=f=p=!1,m=void 0,l.value=u.value=``,a.removeAttribute(`aria-busy`)},y=(e,t)=>{e instanceof HTMLElement&&`setCustomValidity`in e&&typeof e.setCustomValidity==`function`&&e.setCustomValidity(t)},b=e=>y(e.target,``);return a.addEventListener(`input`,b),a.addEventListener(`change`,b),a.addEventListener(`submit`,async e=>{if(!e.submitter?.hasAttribute(`formaction`)){if(f){p?m=e:e.preventDefault();return}if(e.preventDefault(),!d){if(h>Date.now()){s.textContent=_();return}d=!0,s.textContent=``,a.setAttribute(`aria-busy`,`true`);try{if(!window.PublicKeyCredential?.parseCreationOptionsFromJSON||!PublicKeyCredential.parseRequestOptionsFromJSON||!navigator.credentials)throw Error(`Passkeys are unavailable in this browser.`);let i=new FormData(a);i.delete(`credential`),i.delete(`ceremony`),i.set(`bootstrap`,t);let o=await fetch(n,{method:`POST`,body:i,credentials:`same-origin`,cache:`no-store`});if(o.status===429){let e=Date.now(),t=o.headers.get(`retry-after`)??`60`,n=/^\\d+$/.test(t)?e+Number(t)*1e3:Date.parse(t);throw h=Number.isNaN(n)?e+6e4:Math.min(e+36e5,Math.max(e+1e3,n)),Error(_())}if(o.status===422){let e=await o.json();if(Array.isArray(e.fields))for(let t of e.fields)typeof t==`string`&&y(a.elements.namedItem(t),`Check this field.`);throw a.reportValidity(),Error(`Check your registration details and try again.`)}if(o.status===410)throw Error(`This page has expired. Reload and try again.`);if(!o.ok)throw Error(`Could not start the passkey request. Try again.`);let c=await o.json();u.value=c.ceremony;let d=await(r===`register`?navigator.credentials.create({publicKey:PublicKeyCredential.parseCreationOptionsFromJSON(c.options)}):navigator.credentials.get({publicKey:PublicKeyCredential.parseRequestOptionsFromJSON(c.options)}));if(!(d instanceof PublicKeyCredential))throw Error(`No passkey was returned. Try again.`);l.value=JSON.stringify(d),f=!0,p=!0,m=void 0,HTMLFormElement.prototype.requestSubmit.call(a,e.submitter??void 0),p=!1,f=!!(m&&!m.defaultPrevented),f&&(g=setTimeout(()=>{v(),s.textContent=r===`register`?`If registration already completed, sign in; otherwise try again.`:`If sign-in did not finish, try again.`},12e4))}catch(e){v(),s.textContent=e instanceof DOMException&&e.name===`NotAllowedError`?`Passkey request canceled. Try again.`:e instanceof Error?e.message:`Could not complete the passkey request. Try again.`}finally{d=!1,p=!1,f||a.removeAttribute(`aria-busy`)}}}}),v}const t=new WeakMap,n=()=>document.querySelectorAll(`script[data-passkey]`),r=()=>{for(let r of n()){if(t.has(r))continue;let n=r.dataset.passkey;if(n===`register`||n===`login`){let i=listen(r.id,r.dataset.bootstrap??``,r.dataset.endpoint??``,n);i&&t.set(r,i)}}};typeof document<`u`&&(window.addEventListener(`pageshow`,e=>{if(e.persisted)for(let e of n())t.get(e)?.()}),r(),new MutationObserver(r).observe(document.documentElement,{childList:!0,subtree:!0}));";
2
- export declare const etag = "W/\"c904f3541cdce47df6c6e44e6ae8fddaa56155055b2b65bc580de00ff3741e7b\"";
1
+ export declare const source = "export function listen(e,t,n,r,i){let a=document.getElementById(e),o=a?.closest(`form`),s=a?.previousElementSibling,c=o?.querySelector(`[data-passkey-error]:not([data-passkey-fallback])`)??s;if(!(o instanceof HTMLFormElement)||!(c instanceof HTMLElement))return;c!==s&&s instanceof HTMLElement&&(s.hidden=!0);let l=e=>{let t=o.elements.namedItem(e);if(t instanceof HTMLInputElement)return t;let n=document.createElement(`input`);return n.type=`hidden`,n.name=e,o.append(n),n},u=l(`credential`),d=l(`ceremony`),f=!1,p=!1,m=!1,h,g=0,_,v=()=>`Too many requests. Try again in ${Math.ceil((g-Date.now())/1e3)} seconds.`,y=()=>{clearTimeout(_),_=void 0,f=p=m=!1,h=void 0,u.value=d.value=``,o.removeAttribute(`aria-busy`)},b=(e,t)=>{e instanceof HTMLElement&&`setCustomValidity`in e&&typeof e.setCustomValidity==`function`&&e.setCustomValidity(t)},x=e=>b(e.target,``);return o.addEventListener(`input`,x),o.addEventListener(`change`,x),o.addEventListener(`submit`,async e=>{if(!e.submitter?.hasAttribute(`formaction`)){if(p){m?h=e:e.preventDefault();return}if(e.preventDefault(),!f){if(g>Date.now()){c.textContent=v();return}f=!0,c.textContent=``,o.setAttribute(`aria-busy`,`true`);try{if(!window.PublicKeyCredential?.parseCreationOptionsFromJSON||!PublicKeyCredential.parseRequestOptionsFromJSON||!navigator.credentials)throw Error(`Passkeys are unavailable in this browser.`);let a=new FormData(o);a.delete(`credential`),a.delete(`ceremony`),a.set(`bootstrap`,t);let s=await fetch(n,{method:`POST`,body:a,credentials:`same-origin`,cache:`no-store`});if(s.status===429){let e=Date.now(),t=s.headers.get(`retry-after`)??`60`,n=/^\\d+$/.test(t)?e+Number(t)*1e3:Date.parse(t);throw g=Number.isNaN(n)?e+6e4:Math.min(e+36e5,Math.max(e+1e3,n)),Error(v())}if(s.status===422){let e=await s.json();if(e.fields&&typeof e.fields==`object`)for(let[t,n]of Object.entries(e.fields))typeof n==`string`&&b(o.elements.namedItem(t),n);throw o.reportValidity(),Error(`Check your registration details and try again.`)}if(s.status===410)throw Error(`This page has expired. Reload and try again.`);if(s.status===401){if(!i)throw Error(`Sign in again, then try once more.`);let e=(e,t)=>fetch(e,{method:`POST`,body:t,credentials:`same-origin`,cache:`no-store`,redirect:`manual`}),t=new FormData;t.set(`bootstrap`,i.bootstrap);let n=await e(i.endpoint,t);if(n.status===410)throw Error(`This page has expired. Reload and try again.`);if(!n.ok)throw Error(`Sign in again, then try once more.`);let r=await n.json(),a=await navigator.credentials.get({publicKey:PublicKeyCredential.parseRequestOptionsFromJSON(r.options)});if(!(a instanceof PublicKeyCredential))throw Error(`No passkey was returned. Try again.`);let o=new FormData;throw o.set(`credential`,JSON.stringify(a)),o.set(`ceremony`,r.ceremony),(await e(i.action,o)).status===204?Error(`Confirmed. Press the button again to finish.`):Error(`Could not confirm your passkey. Try again.`)}if(!s.ok)throw Error(`Could not start the passkey request. Try again.`);let l=await s.json();d.value=l.ceremony;let f=await(r===`register`?navigator.credentials.create({publicKey:PublicKeyCredential.parseCreationOptionsFromJSON(l.options)}):navigator.credentials.get({publicKey:PublicKeyCredential.parseRequestOptionsFromJSON(l.options)}));if(!(f instanceof PublicKeyCredential))throw Error(`No passkey was returned. Try again.`);u.value=JSON.stringify(f),p=!0,m=!0,h=void 0,HTMLFormElement.prototype.requestSubmit.call(o,e.submitter??void 0),m=!1,p=!!(h&&!h.defaultPrevented),p&&(_=setTimeout(()=>{y(),c.textContent=r===`register`?`If registration already completed, sign in; otherwise try again.`:`If sign-in did not finish, try again.`},12e4))}catch(e){y(),c.textContent=e instanceof DOMException&&e.name===`NotAllowedError`?`Passkey request canceled. Try again.`:e instanceof Error?e.message:`Could not complete the passkey request. Try again.`}finally{f=!1,m=!1,p||o.removeAttribute(`aria-busy`)}}}}),y}const t=new WeakMap,n=()=>document.querySelectorAll(`script[data-passkey]`),r=()=>{for(let r of n()){if(t.has(r))continue;let n=r.dataset.passkey;if(n===`register`||n===`login`){let i=listen(r.id,r.dataset.bootstrap??``,r.dataset.endpoint??``,n,r.dataset.confirm?{bootstrap:r.dataset.confirm,endpoint:r.dataset.confirmEndpoint??``,action:r.dataset.confirmAction??``}:void 0);i&&t.set(r,i)}}};typeof document<`u`&&(window.addEventListener(`pageshow`,e=>{if(e.persisted)for(let e of n())t.get(e)?.()}),r(),new MutationObserver(r).observe(document.documentElement,{childList:!0,subtree:!0}));";
2
+ export declare const etag = "W/\"cd84978ac63729e95e76d936a954d6e7d110f47e0b70102a09b9e990f022a9c5\"";
3
3
  //# sourceMappingURL=client-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-source.d.ts","sourceRoot":"","sources":["../../src/auth/client-source.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,y8GAAy8G,CAAC;AAC79G,eAAO,MAAM,IAAI,2EAA2E,CAAC"}
1
+ {"version":3,"file":"client-source.d.ts","sourceRoot":"","sources":["../../src/auth/client-source.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,k6IAAk6I,CAAC;AACt7I,eAAO,MAAM,IAAI,2EAA2E,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // Generated by scripts/client.js; edit client.ts instead.
2
- export const source = "export function listen(e,t,n,r){let i=document.getElementById(e),a=i?.closest(`form`),o=i?.previousElementSibling,s=a?.querySelector(`[data-passkey-error]:not([data-passkey-fallback])`)??o;if(!(a instanceof HTMLFormElement)||!(s instanceof HTMLElement))return;s!==o&&o instanceof HTMLElement&&(o.hidden=!0);let c=e=>{let t=a.elements.namedItem(e);if(t instanceof HTMLInputElement)return t;let n=document.createElement(`input`);return n.type=`hidden`,n.name=e,a.append(n),n},l=c(`credential`),u=c(`ceremony`),d=!1,f=!1,p=!1,m,h=0,g,_=()=>`Too many requests. Try again in ${Math.ceil((h-Date.now())/1e3)} seconds.`,v=()=>{clearTimeout(g),g=void 0,d=f=p=!1,m=void 0,l.value=u.value=``,a.removeAttribute(`aria-busy`)},y=(e,t)=>{e instanceof HTMLElement&&`setCustomValidity`in e&&typeof e.setCustomValidity==`function`&&e.setCustomValidity(t)},b=e=>y(e.target,``);return a.addEventListener(`input`,b),a.addEventListener(`change`,b),a.addEventListener(`submit`,async e=>{if(!e.submitter?.hasAttribute(`formaction`)){if(f){p?m=e:e.preventDefault();return}if(e.preventDefault(),!d){if(h>Date.now()){s.textContent=_();return}d=!0,s.textContent=``,a.setAttribute(`aria-busy`,`true`);try{if(!window.PublicKeyCredential?.parseCreationOptionsFromJSON||!PublicKeyCredential.parseRequestOptionsFromJSON||!navigator.credentials)throw Error(`Passkeys are unavailable in this browser.`);let i=new FormData(a);i.delete(`credential`),i.delete(`ceremony`),i.set(`bootstrap`,t);let o=await fetch(n,{method:`POST`,body:i,credentials:`same-origin`,cache:`no-store`});if(o.status===429){let e=Date.now(),t=o.headers.get(`retry-after`)??`60`,n=/^\\d+$/.test(t)?e+Number(t)*1e3:Date.parse(t);throw h=Number.isNaN(n)?e+6e4:Math.min(e+36e5,Math.max(e+1e3,n)),Error(_())}if(o.status===422){let e=await o.json();if(Array.isArray(e.fields))for(let t of e.fields)typeof t==`string`&&y(a.elements.namedItem(t),`Check this field.`);throw a.reportValidity(),Error(`Check your registration details and try again.`)}if(o.status===410)throw Error(`This page has expired. Reload and try again.`);if(!o.ok)throw Error(`Could not start the passkey request. Try again.`);let c=await o.json();u.value=c.ceremony;let d=await(r===`register`?navigator.credentials.create({publicKey:PublicKeyCredential.parseCreationOptionsFromJSON(c.options)}):navigator.credentials.get({publicKey:PublicKeyCredential.parseRequestOptionsFromJSON(c.options)}));if(!(d instanceof PublicKeyCredential))throw Error(`No passkey was returned. Try again.`);l.value=JSON.stringify(d),f=!0,p=!0,m=void 0,HTMLFormElement.prototype.requestSubmit.call(a,e.submitter??void 0),p=!1,f=!!(m&&!m.defaultPrevented),f&&(g=setTimeout(()=>{v(),s.textContent=r===`register`?`If registration already completed, sign in; otherwise try again.`:`If sign-in did not finish, try again.`},12e4))}catch(e){v(),s.textContent=e instanceof DOMException&&e.name===`NotAllowedError`?`Passkey request canceled. Try again.`:e instanceof Error?e.message:`Could not complete the passkey request. Try again.`}finally{d=!1,p=!1,f||a.removeAttribute(`aria-busy`)}}}}),v}const t=new WeakMap,n=()=>document.querySelectorAll(`script[data-passkey]`),r=()=>{for(let r of n()){if(t.has(r))continue;let n=r.dataset.passkey;if(n===`register`||n===`login`){let i=listen(r.id,r.dataset.bootstrap??``,r.dataset.endpoint??``,n);i&&t.set(r,i)}}};typeof document<`u`&&(window.addEventListener(`pageshow`,e=>{if(e.persisted)for(let e of n())t.get(e)?.()}),r(),new MutationObserver(r).observe(document.documentElement,{childList:!0,subtree:!0}));";
3
- export const etag = "W/\"c904f3541cdce47df6c6e44e6ae8fddaa56155055b2b65bc580de00ff3741e7b\"";
2
+ export const source = "export function listen(e,t,n,r,i){let a=document.getElementById(e),o=a?.closest(`form`),s=a?.previousElementSibling,c=o?.querySelector(`[data-passkey-error]:not([data-passkey-fallback])`)??s;if(!(o instanceof HTMLFormElement)||!(c instanceof HTMLElement))return;c!==s&&s instanceof HTMLElement&&(s.hidden=!0);let l=e=>{let t=o.elements.namedItem(e);if(t instanceof HTMLInputElement)return t;let n=document.createElement(`input`);return n.type=`hidden`,n.name=e,o.append(n),n},u=l(`credential`),d=l(`ceremony`),f=!1,p=!1,m=!1,h,g=0,_,v=()=>`Too many requests. Try again in ${Math.ceil((g-Date.now())/1e3)} seconds.`,y=()=>{clearTimeout(_),_=void 0,f=p=m=!1,h=void 0,u.value=d.value=``,o.removeAttribute(`aria-busy`)},b=(e,t)=>{e instanceof HTMLElement&&`setCustomValidity`in e&&typeof e.setCustomValidity==`function`&&e.setCustomValidity(t)},x=e=>b(e.target,``);return o.addEventListener(`input`,x),o.addEventListener(`change`,x),o.addEventListener(`submit`,async e=>{if(!e.submitter?.hasAttribute(`formaction`)){if(p){m?h=e:e.preventDefault();return}if(e.preventDefault(),!f){if(g>Date.now()){c.textContent=v();return}f=!0,c.textContent=``,o.setAttribute(`aria-busy`,`true`);try{if(!window.PublicKeyCredential?.parseCreationOptionsFromJSON||!PublicKeyCredential.parseRequestOptionsFromJSON||!navigator.credentials)throw Error(`Passkeys are unavailable in this browser.`);let a=new FormData(o);a.delete(`credential`),a.delete(`ceremony`),a.set(`bootstrap`,t);let s=await fetch(n,{method:`POST`,body:a,credentials:`same-origin`,cache:`no-store`});if(s.status===429){let e=Date.now(),t=s.headers.get(`retry-after`)??`60`,n=/^\\d+$/.test(t)?e+Number(t)*1e3:Date.parse(t);throw g=Number.isNaN(n)?e+6e4:Math.min(e+36e5,Math.max(e+1e3,n)),Error(v())}if(s.status===422){let e=await s.json();if(e.fields&&typeof e.fields==`object`)for(let[t,n]of Object.entries(e.fields))typeof n==`string`&&b(o.elements.namedItem(t),n);throw o.reportValidity(),Error(`Check your registration details and try again.`)}if(s.status===410)throw Error(`This page has expired. Reload and try again.`);if(s.status===401){if(!i)throw Error(`Sign in again, then try once more.`);let e=(e,t)=>fetch(e,{method:`POST`,body:t,credentials:`same-origin`,cache:`no-store`,redirect:`manual`}),t=new FormData;t.set(`bootstrap`,i.bootstrap);let n=await e(i.endpoint,t);if(n.status===410)throw Error(`This page has expired. Reload and try again.`);if(!n.ok)throw Error(`Sign in again, then try once more.`);let r=await n.json(),a=await navigator.credentials.get({publicKey:PublicKeyCredential.parseRequestOptionsFromJSON(r.options)});if(!(a instanceof PublicKeyCredential))throw Error(`No passkey was returned. Try again.`);let o=new FormData;throw o.set(`credential`,JSON.stringify(a)),o.set(`ceremony`,r.ceremony),(await e(i.action,o)).status===204?Error(`Confirmed. Press the button again to finish.`):Error(`Could not confirm your passkey. Try again.`)}if(!s.ok)throw Error(`Could not start the passkey request. Try again.`);let l=await s.json();d.value=l.ceremony;let f=await(r===`register`?navigator.credentials.create({publicKey:PublicKeyCredential.parseCreationOptionsFromJSON(l.options)}):navigator.credentials.get({publicKey:PublicKeyCredential.parseRequestOptionsFromJSON(l.options)}));if(!(f instanceof PublicKeyCredential))throw Error(`No passkey was returned. Try again.`);u.value=JSON.stringify(f),p=!0,m=!0,h=void 0,HTMLFormElement.prototype.requestSubmit.call(o,e.submitter??void 0),m=!1,p=!!(h&&!h.defaultPrevented),p&&(_=setTimeout(()=>{y(),c.textContent=r===`register`?`If registration already completed, sign in; otherwise try again.`:`If sign-in did not finish, try again.`},12e4))}catch(e){y(),c.textContent=e instanceof DOMException&&e.name===`NotAllowedError`?`Passkey request canceled. Try again.`:e instanceof Error?e.message:`Could not complete the passkey request. Try again.`}finally{f=!1,m=!1,p||o.removeAttribute(`aria-busy`)}}}}),y}const t=new WeakMap,n=()=>document.querySelectorAll(`script[data-passkey]`),r=()=>{for(let r of n()){if(t.has(r))continue;let n=r.dataset.passkey;if(n===`register`||n===`login`){let i=listen(r.id,r.dataset.bootstrap??``,r.dataset.endpoint??``,n,r.dataset.confirm?{bootstrap:r.dataset.confirm,endpoint:r.dataset.confirmEndpoint??``,action:r.dataset.confirmAction??``}:void 0);i&&t.set(r,i)}}};typeof document<`u`&&(window.addEventListener(`pageshow`,e=>{if(e.persisted)for(let e of n())t.get(e)?.()}),r(),new MutationObserver(r).observe(document.documentElement,{childList:!0,subtree:!0}));";
3
+ export const etag = "W/\"cd84978ac63729e95e76d936a954d6e7d110f47e0b70102a09b9e990f022a9c5\"";
@@ -1,3 +1,9 @@
1
1
  /** Attach the passkey protocol to one form. Served as a normal browser module. */
2
- export declare function listen(id: string, bootstrap: string, endpoint: string, method: "register" | "login"): (() => void) | undefined;
2
+ export declare function listen(id: string, bootstrap: string, endpoint: string, method: "register" | "login",
3
+ /** Confirms the person with a passkey they have, when the form asks */
4
+ confirm?: {
5
+ bootstrap: string;
6
+ endpoint: string;
7
+ action: string;
8
+ }): (() => void) | undefined;
3
9
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/auth/client.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,wBAAgB,MAAM,CACrB,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,UAAU,GAAG,OAAO,4BAyK5B"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/auth/client.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,wBAAgB,MAAM,CACrB,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,UAAU,GAAG,OAAO;AAC5B,uEAAuE;AACvE,OAAO,CAAC,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,4BA4MjE"}
@@ -1,5 +1,7 @@
1
1
  /** Attach the passkey protocol to one form. Served as a normal browser module. */
2
- export function listen(id, bootstrap, endpoint, method) {
2
+ export function listen(id, bootstrap, endpoint, method,
3
+ /** Confirms the person with a passkey they have, when the form asks */
4
+ confirm) {
3
5
  const script = document.getElementById(id);
4
6
  const form = script?.closest("form");
5
7
  // the accessible error component the form renders before the script
@@ -97,15 +99,48 @@ export function listen(id, bootstrap, endpoint, method) {
97
99
  }
98
100
  if (res.status === 422) {
99
101
  const result = await res.json();
100
- if (Array.isArray(result.fields))
101
- for (const name of result.fields)
102
- if (typeof name === "string")
103
- validity(form.elements.namedItem(name), "Check this field.");
102
+ if (result.fields && typeof result.fields === "object")
103
+ for (const [name, message] of Object.entries(result.fields))
104
+ if (typeof message === "string")
105
+ validity(form.elements.namedItem(name), message);
104
106
  form.reportValidity();
105
107
  throw new Error("Check your registration details and try again.");
106
108
  }
107
109
  if (res.status === 410)
108
110
  throw new Error("This page has expired. Reload and try again.");
111
+ // adding a passkey asks for a recent sign-in, or for a passkey the
112
+ // person already has
113
+ if (res.status === 401) {
114
+ if (!confirm)
115
+ throw new Error("Sign in again, then try once more.");
116
+ const send = (url, body) => fetch(url, {
117
+ method: "POST",
118
+ body,
119
+ credentials: "same-origin",
120
+ cache: "no-store",
121
+ redirect: "manual",
122
+ });
123
+ const ask = new FormData();
124
+ ask.set("bootstrap", confirm.bootstrap);
125
+ const asked = await send(confirm.endpoint, ask);
126
+ if (asked.status === 410)
127
+ throw new Error("This page has expired. Reload and try again.");
128
+ if (!asked.ok)
129
+ throw new Error("Sign in again, then try once more.");
130
+ const proof = await asked.json();
131
+ const mine = await navigator.credentials.get({
132
+ publicKey: PublicKeyCredential.parseRequestOptionsFromJSON(proof.options),
133
+ });
134
+ if (!(mine instanceof PublicKeyCredential))
135
+ throw new Error("No passkey was returned. Try again.");
136
+ const answer = new FormData();
137
+ answer.set("credential", JSON.stringify(mine));
138
+ answer.set("ceremony", proof.ceremony);
139
+ if ((await send(confirm.action, answer)).status !== 204)
140
+ throw new Error("Could not confirm your passkey. Try again.");
141
+ // a browser asks for a new press before its next passkey prompt
142
+ throw new Error("Confirmed. Press the button again to finish.");
143
+ }
109
144
  if (!res.ok)
110
145
  throw new Error("Could not start the passkey request. Try again.");
111
146
  // creation options for a registration, request options for a login
@@ -166,7 +201,13 @@ const scan = () => {
166
201
  continue;
167
202
  const method = script.dataset.passkey;
168
203
  if (method === "register" || method === "login") {
169
- const reset = listen(script.id, script.dataset.bootstrap ?? "", script.dataset.endpoint ?? "", method);
204
+ const reset = listen(script.id, script.dataset.bootstrap ?? "", script.dataset.endpoint ?? "", method, script.dataset.confirm
205
+ ? {
206
+ bootstrap: script.dataset.confirm,
207
+ endpoint: script.dataset.confirmEndpoint ?? "",
208
+ action: script.dataset.confirmAction ?? "",
209
+ }
210
+ : undefined);
170
211
  if (reset)
171
212
  attached.set(script, reset);
172
213
  }
@@ -9,17 +9,35 @@ import type { Storage } from "./storage.js";
9
9
  * @template U Users table
10
10
  */
11
11
  export declare function configure<U extends Auth.Users>(options: Auth.Options<U>, storage: Storage, state: (c: State.Context) => State): {
12
- routes: (Route.Used<Route.Get<"/_passkey/client.js", {}, Field.Shape>> | Route.Used<Route.Post<"/_passkey/options/login", {}, {
13
- bootstrap: Field.Instance<string, "input", "hidden", undefined, undefined>;
12
+ routes: (Route.Used<Route.Get<"/_passkey/client.js", {}, Field.Shape>> | Route.Used<Route.Post<"/_passkey/options/add", {}, {
13
+ name: Field.Instance<string | undefined, "input", "text", undefined, undefined, undefined>;
14
+ bootstrap: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
15
+ }>> | Route.Used<Route.Post<"/_passkey/options/confirm", {}, {
16
+ bootstrap: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
17
+ }>> | Route.Used<Route.Post<"/_passkey/options/login", {}, {
18
+ bootstrap: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
14
19
  }>> | Route.Used<Route.Post<"/_passkey/options/register", {}, {
15
- bootstrap: Field.Instance<string, "input", "hidden", undefined, undefined>;
20
+ bootstrap: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
21
+ }>> | Route.Used<Route.Post<"/auth/confirm", {}, {
22
+ credential: Field.Instance<unknown, "input", "hidden", undefined, undefined, undefined>;
23
+ ceremony: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
24
+ }>> | Route.Used<Route.Post<"/auth/link", {}, {
25
+ link: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
16
26
  }>> | Route.Used<Route.Post<"/auth/login", {}, {
17
- credential: Field.Instance<unknown, "input", "hidden", undefined, undefined>;
18
- ceremony: Field.Instance<string, "input", "hidden", undefined, undefined>;
19
- }>> | Route.Used<Route.Post<"/auth/logout", {}, Field.Shape>> | Route.Used<Route.Post<"/auth/register", {}, {
20
- credential: Field.Instance<unknown, "input", "hidden", undefined, undefined>;
21
- ceremony: Field.Instance<string, "input", "hidden", undefined, undefined>;
27
+ credential: Field.Instance<unknown, "input", "hidden", undefined, undefined, undefined>;
28
+ ceremony: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
29
+ }>> | Route.Used<Route.Post<"/auth/logout", {}, Field.Shape>> | Route.Used<Route.Post<"/auth/passkey", {}, {
30
+ credential: Field.Instance<unknown, "input", "hidden", undefined, undefined, undefined>;
31
+ ceremony: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
32
+ name: Field.Instance<string | undefined, "input", "text", undefined, undefined, undefined>;
33
+ }>> | Route.Used<Route.Post<"/auth/register", {}, {
34
+ credential: Field.Instance<unknown, "input", "hidden", undefined, undefined, undefined>;
35
+ ceremony: Field.Instance<string, "input", "hidden", undefined, undefined, undefined>;
22
36
  }>>)[];
37
+ /** Make a link that signs a user in once, see `Auth.link`. */
38
+ link(user: string, { origin }?: {
39
+ origin?: string;
40
+ }): Promise<string>;
23
41
  /** Create forms in the handler before returning JSX, so ovr can set the binding cookie. */
24
42
  forms(c: Auth.Context, props?: {
25
43
  nonce?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../src/auth/configure.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAe,MAAM,kBAAkB,CAAC;AAItD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,IAAI,CAAC,KAAK,EAC7C,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,KAAK,KAAK;;;;;;;;;;;;IA6MjC,2FAA2F;aAEvF,IAAI,CAAC,OAAO,UACR;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GACvB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;EAmD9B"}
1
+ {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../src/auth/configure.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAsB,MAAM,kBAAkB,CAAC;AAI7D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,IAAI,CAAC,KAAK,EAC7C,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EACxB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,KAAK,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;IAyWjC,8DAA8D;eAEvD,MAAM,eACiB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAiBjD,2FAA2F;aAEvF,IAAI,CAAC,OAAO,UACR;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GACvB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;EAwF9B"}