@ovixa/auth-client 0.2.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -5,18 +5,37 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [0.3.1] - 2026-01-30
9
+
10
+ ### Fixed
11
+
12
+ - `prepareRegistrationOptions` and `prepareAuthenticationOptions` now handle null/undefined credential arrays from server responses
13
+ - Malformed credential IDs in `excludeCredentials` and `allowCredentials` are now skipped with a warning instead of causing "Offset is outside the bounds of the DataView" browser errors
14
+
15
+ ## [0.3.0] - 2026-01-30
16
+
17
+ ### Added
18
+
19
+ - `auth.webauthn.listPasskeys({ accessToken })` - List all passkeys for the authenticated user
20
+ - `auth.webauthn.deletePasskey({ accessToken, credentialId })` - Delete a specific passkey
21
+
22
+ ### Changed
23
+
24
+ - **BREAKING**: Moved WebAuthn methods to `auth.webauthn` namespace
25
+ - `auth.getPasskeyRegistrationOptions()` → `auth.webauthn.getRegistrationOptions()`
26
+ - `auth.verifyPasskeyRegistration()` → `auth.webauthn.verifyRegistration()`
27
+ - `auth.getPasskeyAuthenticationOptions()` → `auth.webauthn.getAuthenticationOptions()`
28
+ - `auth.verifyPasskeyAuthentication()` → `auth.webauthn.authenticate()`
29
+
8
30
  ## [0.2.0] - 2026-01-29
9
31
 
10
32
  ### Added
11
33
 
12
34
  - **WebAuthn/Passkey authentication support** - Passwordless authentication using FIDO2
13
- - `auth.webauthn.getRegistrationOptions(realmId)` - Get options to register a new passkey
14
- - `auth.webauthn.verifyRegistration(realmId, registration)` - Complete passkey registration
15
- - `auth.webauthn.getAuthenticationOptions(realmId, email?)` - Get options to authenticate with passkey
16
- - `auth.webauthn.authenticate(realmId, authentication)` - Authenticate and receive tokens
17
- - `auth.webauthn.getCredentials(realmId)` - List user's registered passkeys
18
- - `auth.webauthn.deleteCredential(realmId, credentialId)` - Remove a passkey
19
- - `auth.webauthn.updateCredentialName(realmId, credentialId, name)` - Rename a passkey
35
+ - `auth.getPasskeyRegistrationOptions({ accessToken })` - Get options to register a new passkey
36
+ - `auth.verifyPasskeyRegistration({ accessToken, registration, deviceName? })` - Complete passkey registration
37
+ - `auth.getPasskeyAuthenticationOptions({ email? })` - Get options to authenticate with passkey
38
+ - `auth.verifyPasskeyAuthentication({ authentication })` - Authenticate and receive tokens
20
39
 
21
40
  ## [0.1.3] - 2026-01-29
22
41
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OvixaAuthError
3
- } from "./chunk-5ZWKDQQM.js";
3
+ } from "./chunk-ZUTZYJDF.js";
4
4
 
5
5
  // src/middleware/types.ts
6
6
  var DEFAULT_COOKIE_OPTIONS = {
@@ -140,4 +140,4 @@ export {
140
140
  setAuthCookies,
141
141
  clearAuthCookies
142
142
  };
143
- //# sourceMappingURL=chunk-WON3EB4B.js.map
143
+ //# sourceMappingURL=chunk-YFMPRWGI.js.map