@authon/js 0.3.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/README.ko.md +58 -149
- package/README.md +201 -368
- package/dist/index.cjs +673 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +669 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -41,6 +41,8 @@ declare class Authon {
|
|
|
41
41
|
getProviders(): Promise<OAuthProviderType[]>;
|
|
42
42
|
openSignIn(): Promise<void>;
|
|
43
43
|
openSignUp(): Promise<void>;
|
|
44
|
+
/** Update theme at runtime without destroying form state */
|
|
45
|
+
setTheme(theme: 'light' | 'dark' | 'auto'): void;
|
|
44
46
|
signInWithOAuth(provider: OAuthProviderType, options?: OAuthSignInOptions): Promise<void>;
|
|
45
47
|
signInWithEmail(email: string, password: string): Promise<AuthonUser>;
|
|
46
48
|
signUpWithEmail(email: string, password: string, meta?: {
|
|
@@ -120,6 +122,8 @@ declare class Authon {
|
|
|
120
122
|
private apiGetAuth;
|
|
121
123
|
private apiPatchAuth;
|
|
122
124
|
private apiDeleteAuth;
|
|
125
|
+
private getWalletAddress;
|
|
126
|
+
private requestWalletSignature;
|
|
123
127
|
private bufferToBase64url;
|
|
124
128
|
private base64urlToBuffer;
|
|
125
129
|
private deserializeCreationOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ declare class Authon {
|
|
|
41
41
|
getProviders(): Promise<OAuthProviderType[]>;
|
|
42
42
|
openSignIn(): Promise<void>;
|
|
43
43
|
openSignUp(): Promise<void>;
|
|
44
|
+
/** Update theme at runtime without destroying form state */
|
|
45
|
+
setTheme(theme: 'light' | 'dark' | 'auto'): void;
|
|
44
46
|
signInWithOAuth(provider: OAuthProviderType, options?: OAuthSignInOptions): Promise<void>;
|
|
45
47
|
signInWithEmail(email: string, password: string): Promise<AuthonUser>;
|
|
46
48
|
signUpWithEmail(email: string, password: string, meta?: {
|
|
@@ -120,6 +122,8 @@ declare class Authon {
|
|
|
120
122
|
private apiGetAuth;
|
|
121
123
|
private apiPatchAuth;
|
|
122
124
|
private apiDeleteAuth;
|
|
125
|
+
private getWalletAddress;
|
|
126
|
+
private requestWalletSignature;
|
|
123
127
|
private bufferToBase64url;
|
|
124
128
|
private base64urlToBuffer;
|
|
125
129
|
private deserializeCreationOptions;
|