@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 +1 -1
- package/src/api/v1/Webauthn.js +8 -0
package/package.json
CHANGED
package/src/api/v1/Webauthn.js
CHANGED
|
@@ -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
|
}
|