Skip to content

Commit

Permalink
Add B0yc3y commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrw committed Dec 4, 2023
1 parent f87e4ae commit 259fa77
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions ts/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export declare function init(tenantId: string, options?: object): Promise<void>;

// addInitCallback()
export declare function addInitCallback(callback: function): void;
export declare function addInitCallback(callback: Function): void;

// user
interface User {
Expand All @@ -22,10 +22,10 @@ interface User {
userId?: number;
userUuid?: string;
// methods
update?: function;
updatePassword?: function;
getTotp?: function;
hasRole?: function;
update?: Function;
updatePassword?: Function;
getTotp?: Function;
hasRole?: Function;
confirmedAt?: string; // Deprecated
}
export declare const user: User;
Expand All @@ -36,15 +36,15 @@ interface Tokens {
accessTokenName: string;
idToken: string;
idTokenName: string;
refresh: function;
refresh: Function;
}
export declare const tokens: Tokens;

// mode
interface Mode {
value: "live" | "test";
reason?: string;
setMode?: function;
setMode?: Function;
}
export declare const mode: Mode;

Expand Down Expand Up @@ -167,11 +167,11 @@ export declare function signup({
password?: string;
channel?: "sms" | "email";
redirect?: string | boolean;
handleUpstreamResponse?: function;
handleMfaRequired?: function;
handlePkceRequired?: function;
handleTokens?: function;
handleRedirect?: function;
handleUpstreamResponse?: Function;
handleMfaRequired?: Function;
handlePkceRequired?: Function;
handleTokens?: Function;
handleRedirect?: Function;
}): Promise<SignupResponse>;

// login()
Expand Down Expand Up @@ -219,11 +219,11 @@ export declare function login({
verificationCode?: string;
channel?: "sms" | "email";
redirect?: string | boolean;
handleUpstreamResponse?: function;
handleMfaRequired?: function;
handlePkceRequired?: function;
handleTokens?: function;
handleRedirect?: function;
handleUpstreamResponse?: Function;
handleMfaRequired?: Function;
handlePkceRequired?: Function;
handleTokens?: Function;
handleRedirect?: Function;
options?: object;
}): Promise<LoginResponse>;

Expand Down

0 comments on commit 259fa77

Please sign in to comment.