@passkeyme/auth 1.2.0 → 1.3.0
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 +1 -1
- package/LICENSE +1 -1
- package/README.md +4 -4
- package/dist/index.esm.js +68 -31
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +68 -31
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +68 -31
- package/dist/index.umd.js.map +1 -1
- package/dist/src/api-client.d.ts +1 -1
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/index.d.ts +3 -3
- package/dist/src/passkeyme-auth.d.ts +1 -1
- package/dist/src/platform/PasskeySDK.d.ts +1 -1
- package/dist/src/storage/StorageProvider.d.ts +1 -1
- package/dist/src/storage/index.d.ts +1 -1
- package/dist/src/token-storage.d.ts +1 -1
- package/dist/src/types.d.ts +6 -6
- package/dist/src/utils/logger.d.ts +1 -1
- package/package.json +3 -3
package/dist/src/api-client.d.ts
CHANGED
package/dist/src/errors.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Passkeyme Authentication SDK
|
|
3
3
|
*
|
|
4
|
-
* A simple, Firebase Auth-like SDK for authentication with
|
|
4
|
+
* A simple, Firebase Auth-like SDK for authentication with Passkeyme.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
@@ -38,7 +38,7 @@ import { PasskeymeAuth } from "./passkeyme-auth";
|
|
|
38
38
|
import type { PasskeymeConfig } from "./types";
|
|
39
39
|
export default PasskeymeAuth;
|
|
40
40
|
/**
|
|
41
|
-
* Create a new
|
|
41
|
+
* Create a new Passkeyme Auth instance
|
|
42
42
|
*
|
|
43
43
|
* @param config - Configuration options
|
|
44
44
|
* @returns PasskeymeAuth instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Main
|
|
2
|
+
* Main Passkeyme Authentication SDK class
|
|
3
3
|
*/
|
|
4
4
|
import { PasskeymeConfig, User, AuthState, LoginOptions, AuthEventListener, AuthStateListener, PasskeymeAuthInstance, AppConfiguration } from "./types";
|
|
5
5
|
import { PasskeymeApiClient } from "./api-client";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Core types for
|
|
2
|
+
* Core types for Passkeyme Auth SDK
|
|
3
3
|
*/
|
|
4
4
|
import { StorageProvider } from "./storage";
|
|
5
5
|
import type { PasskeySDK } from "./platform";
|
|
6
6
|
export interface PasskeymeConfig {
|
|
7
|
-
/** Your
|
|
7
|
+
/** Your Passkeyme application ID */
|
|
8
8
|
appId: string;
|
|
9
|
-
/** Base URL of your
|
|
9
|
+
/** Base URL of your Passkeyme server (defaults to https://auth.passkeyme.com) */
|
|
10
10
|
baseUrl?: string;
|
|
11
11
|
/**
|
|
12
|
-
* Custom API URL for your
|
|
12
|
+
* Custom API URL for your Passkeyme server (alias for baseUrl)
|
|
13
13
|
* Use this for custom domains or self-hosted setups
|
|
14
14
|
* @example 'https://auth.yourdomain.com' or 'http://localhost:8000'
|
|
15
15
|
*/
|
|
@@ -18,9 +18,9 @@ export interface PasskeymeConfig {
|
|
|
18
18
|
redirectUri?: string;
|
|
19
19
|
/** Whether to enable debug logging */
|
|
20
20
|
debug?: boolean;
|
|
21
|
-
/** Authentication mode: 'hosted' uses
|
|
21
|
+
/** Authentication mode: 'hosted' uses Passkeyme hosted auth pages, 'direct' for custom UI */
|
|
22
22
|
mode?: "hosted" | "direct";
|
|
23
|
-
/** Your
|
|
23
|
+
/** Your Passkeyme API key for WebAuthn operations */
|
|
24
24
|
passkeyApiKey?: string;
|
|
25
25
|
/** Whether to prompt for passkey registration after successful auth (default: true) */
|
|
26
26
|
autoPromptPasskeyRegistration?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@passkeyme/auth",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Passkeyme Authentication SDK - Simpler than Firebase Auth",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"auth",
|
|
28
28
|
"sdk"
|
|
29
29
|
],
|
|
30
|
-
"author": "
|
|
30
|
+
"author": "Passkeyme",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"files": [
|
|
33
33
|
"dist",
|