@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 +26 -7
- package/dist/{chunk-WON3EB4B.js → chunk-YFMPRWGI.js} +2 -2
- package/dist/{chunk-5ZWKDQQM.js → chunk-ZUTZYJDF.js} +347 -289
- package/dist/chunk-ZUTZYJDF.js.map +1 -0
- package/dist/index.d.ts +178 -150
- package/dist/index.js +1 -1
- package/dist/middleware/astro.js +2 -2
- package/dist/middleware/express.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-5ZWKDQQM.js.map +0 -1
- /package/dist/{chunk-WON3EB4B.js.map → chunk-YFMPRWGI.js.map} +0 -0
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.
|
|
14
|
-
- `auth.
|
|
15
|
-
- `auth.
|
|
16
|
-
- `auth.
|
|
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-
|
|
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-
|
|
143
|
+
//# sourceMappingURL=chunk-YFMPRWGI.js.map
|