@asgardeo/javascript 0.1.7 → 0.1.8

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.
@@ -21,6 +21,7 @@ import { EmbeddedSignInFlowHandleRequestPayload } from './embedded-signin-flow';
21
21
  import { Organization } from './organization';
22
22
  import { User, UserProfile } from './user';
23
23
  import { TokenResponse } from './token';
24
+ import { Storage } from './store';
24
25
  export type SignInOptions = Record<string, unknown>;
25
26
  export type SignOutOptions = Record<string, unknown>;
26
27
  export type SignUpOptions = Record<string, unknown>;
@@ -72,9 +73,10 @@ export interface AsgardeoClient<T> {
72
73
  * Initializes the authentication client with provided configuration.
73
74
  *
74
75
  * @param config - SDK Client instance configuration options.
76
+ * @param storage - Optional storage instance to persist data (e.g., session, user profile).
75
77
  * @returns Promise resolving to boolean indicating success.
76
78
  */
77
- initialize(config: T): Promise<boolean>;
79
+ initialize(config: T, storage?: Storage): Promise<boolean>;
78
80
  /**
79
81
  * Checks if the client is currently loading.
80
82
  * This can be used to determine if the client is in the process of initializing or fetching user data.
@@ -18,13 +18,7 @@
18
18
  /**
19
19
  * Log levels enum
20
20
  */
21
- export declare enum LogLevel {
22
- DEBUG = 0,
23
- INFO = 1,
24
- WARN = 2,
25
- ERROR = 3,
26
- SILENT = 4
27
- }
21
+ export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
28
22
  /**
29
23
  * Logger configuration interface
30
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",