@passkeyme/auth 1.2.0 → 2.0.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.
@@ -1,12 +1,12 @@
1
1
  /**
2
- * API Client for PasskeyMe authentication services
2
+ * API Client for Passkeyme authentication services
3
3
  */
4
4
  import { AuthTokens, User, AppConfiguration } from "./types";
5
5
  export declare class PasskeymeApiClient {
6
6
  private baseUrl;
7
7
  private appId;
8
8
  private debug;
9
- constructor(appId: string, baseUrl?: string, debug?: boolean);
9
+ constructor(appId: string, baseUrl: string, debug?: boolean);
10
10
  private log;
11
11
  private request;
12
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/api-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAY,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGvE,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAU;gBAGrB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,MAAqC,EAC9C,KAAK,GAAE,OAAe;IAOxB,OAAO,CAAC,GAAG;YAMG,OAAO;IAwDrB;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAiD5C;;OAEG;IACG,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQxE;;OAEG;IACG,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAOvD;;OAEG;IACG,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,UAAU,CAAC;IAOtB;;OAEG;IACG,iBAAiB,CACrB,QAAQ,EAAE,MAAM,EAChB,QAAQ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mB,CACvB,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,UAAU,CAAC;IAOtB;;OAEG;IACG,iBAAiB,CACrB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,UAAU,CAAC;IAWtB;;OAEG;IACG,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAO3E;;OAEG;IACG,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA4C/C;;OAEG;IACG,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAO7D;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;IAI7B;;OAEG;IACG,qBAAqB,CACzB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC;QAAE,MAAM,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC;CAe/C"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Enhanced Error Handling for PasskeyMe SDK
2
+ * Enhanced Error Handling for Passkeyme SDK
3
3
  */
4
4
  export declare enum PasskeymeErrorCode {
5
5
  NETWORK_ERROR = "NETWORK_ERROR",
@@ -1,7 +1,7 @@
1
1
  /**
2
- * PasskeyMe Authentication SDK
2
+ * Passkeyme Authentication SDK
3
3
  *
4
- * A simple, Firebase Auth-like SDK for authentication with PasskeyMe.
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 PasskeyMe Auth instance
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 PasskeyMe Authentication SDK class
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";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Platform SDK Interface for PasskeyMe
2
+ * Platform SDK Interface for Passkeyme
3
3
  *
4
4
  * This interface abstracts platform-specific passkey operations,
5
5
  * allowing the core SDK to work across web, React Native, and other platforms.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Storage abstraction interface for PasskeyMe Auth SDK
2
+ * Storage abstraction interface for Passkeyme Auth SDK
3
3
  *
4
4
  * This interface allows different storage implementations across platforms:
5
5
  * - Browser: localStorage/sessionStorage
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Storage exports for PasskeyMe Auth SDK
2
+ * Storage exports for Passkeyme Auth SDK
3
3
  */
4
4
  export type { StorageProvider } from "./StorageProvider";
5
5
  export { BrowserStorageProvider } from "./BrowserStorageProvider";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Secure token storage for PasskeyMe Auth SDK
2
+ * Secure token storage for Passkeyme Auth SDK
3
3
  */
4
4
  import { AuthTokens } from "./types";
5
5
  import { StorageProvider } from "./storage";
@@ -1,15 +1,15 @@
1
1
  /**
2
- * Core types for PasskeyMe Auth SDK
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 PasskeyMe application ID */
7
+ /** Your Passkeyme application ID */
8
8
  appId: string;
9
- /** Base URL of your PasskeyMe server (defaults to https://auth.passkeyme.com) */
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 PasskeyMe server (alias for baseUrl)
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 PasskeyMe hosted auth pages, 'direct' for custom UI */
21
+ /** Authentication mode: 'hosted' uses Passkeyme hosted auth pages, 'direct' for custom UI */
22
22
  mode?: "hosted" | "direct";
23
- /** Your PasskeyMe API key for WebAuthn operations */
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;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Internal logging utility for PasskeyMe SDK
2
+ * Internal logging utility for Passkeyme SDK
3
3
  * Provides controlled logging that can be enabled/disabled in production
4
4
  */
5
5
  export interface LoggerConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@passkeyme/auth",
3
- "version": "1.2.0",
4
- "description": "PasskeyMe Authentication SDK - Simpler than Firebase Auth",
3
+ "version": "2.0.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": "PasskeyMe",
30
+ "author": "Passkeyme",
31
31
  "license": "MIT",
32
32
  "files": [
33
33
  "dist",