@authon/js 0.3.0 → 0.3.2

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/dist/index.d.cts CHANGED
@@ -37,14 +37,19 @@ declare class Authon {
37
37
  private providers;
38
38
  private providerFlowModes;
39
39
  private initialized;
40
+ private captchaEnabled;
41
+ private turnstileSiteKey;
40
42
  constructor(publishableKey: string, config?: AuthonConfig);
41
43
  getProviders(): Promise<OAuthProviderType[]>;
42
44
  openSignIn(): Promise<void>;
43
45
  openSignUp(): Promise<void>;
46
+ /** Update theme at runtime without destroying form state */
47
+ setTheme(theme: 'light' | 'dark' | 'auto'): void;
44
48
  signInWithOAuth(provider: OAuthProviderType, options?: OAuthSignInOptions): Promise<void>;
45
- signInWithEmail(email: string, password: string): Promise<AuthonUser>;
49
+ signInWithEmail(email: string, password: string, turnstileToken?: string): Promise<AuthonUser>;
46
50
  signUpWithEmail(email: string, password: string, meta?: {
47
51
  displayName?: string;
52
+ turnstileToken?: string;
48
53
  }): Promise<AuthonUser>;
49
54
  signOut(): Promise<void>;
50
55
  getUser(): AuthonUser | null;
@@ -106,6 +111,7 @@ declare class Authon {
106
111
  leave: (orgId: string) => Promise<void>;
107
112
  };
108
113
  destroy(): void;
114
+ private loadTurnstileScript;
109
115
  private emit;
110
116
  private ensureInitialized;
111
117
  private getModal;
@@ -120,6 +126,8 @@ declare class Authon {
120
126
  private apiGetAuth;
121
127
  private apiPatchAuth;
122
128
  private apiDeleteAuth;
129
+ private getWalletAddress;
130
+ private requestWalletSignature;
123
131
  private bufferToBase64url;
124
132
  private base64urlToBuffer;
125
133
  private deserializeCreationOptions;
package/dist/index.d.ts CHANGED
@@ -37,14 +37,19 @@ declare class Authon {
37
37
  private providers;
38
38
  private providerFlowModes;
39
39
  private initialized;
40
+ private captchaEnabled;
41
+ private turnstileSiteKey;
40
42
  constructor(publishableKey: string, config?: AuthonConfig);
41
43
  getProviders(): Promise<OAuthProviderType[]>;
42
44
  openSignIn(): Promise<void>;
43
45
  openSignUp(): Promise<void>;
46
+ /** Update theme at runtime without destroying form state */
47
+ setTheme(theme: 'light' | 'dark' | 'auto'): void;
44
48
  signInWithOAuth(provider: OAuthProviderType, options?: OAuthSignInOptions): Promise<void>;
45
- signInWithEmail(email: string, password: string): Promise<AuthonUser>;
49
+ signInWithEmail(email: string, password: string, turnstileToken?: string): Promise<AuthonUser>;
46
50
  signUpWithEmail(email: string, password: string, meta?: {
47
51
  displayName?: string;
52
+ turnstileToken?: string;
48
53
  }): Promise<AuthonUser>;
49
54
  signOut(): Promise<void>;
50
55
  getUser(): AuthonUser | null;
@@ -106,6 +111,7 @@ declare class Authon {
106
111
  leave: (orgId: string) => Promise<void>;
107
112
  };
108
113
  destroy(): void;
114
+ private loadTurnstileScript;
109
115
  private emit;
110
116
  private ensureInitialized;
111
117
  private getModal;
@@ -120,6 +126,8 @@ declare class Authon {
120
126
  private apiGetAuth;
121
127
  private apiPatchAuth;
122
128
  private apiDeleteAuth;
129
+ private getWalletAddress;
130
+ private requestWalletSignature;
123
131
  private bufferToBase64url;
124
132
  private base64urlToBuffer;
125
133
  private deserializeCreationOptions;