@insignia-education/api-sdk-js 0.15.26 → 0.15.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.26",
3
+ "version": "0.15.27",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -24,4 +24,12 @@ export default class Webauthn {
24
24
  // usernameless discoverable-passkey login.
25
25
  loginOptions(data = {}) { return this.#client.post('/auth/webauthn/login/options', data); }
26
26
  loginVerify(credential) { return this.#client.post('/auth/webauthn/login', { credential }); }
27
+
28
+ /**
29
+ * Step-up confirmation for an already-logged-in user (e.g. approving a
30
+ * payment with a security key instead of password + captcha). No verify
31
+ * method here — embed the resulting credential as `webauthn_credential`
32
+ * in the sensitive action's own request.
33
+ */
34
+ confirmOptions() { return this.#client.post('/webauthn/confirm/options'); }
27
35
  }