@cloudbase/auth 2.9.8 → 2.11.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.
@@ -114,6 +114,15 @@ declare class Auth {
114
114
  phoneNum?: string;
115
115
  bindInfo?: any;
116
116
  }): Promise<LoginState>;
117
+ signInWithEmail({ verificationInfo, verificationCode, bindInfo, email, }: {
118
+ verificationInfo?: {
119
+ verification_id: string;
120
+ is_user: boolean;
121
+ };
122
+ verificationCode?: string;
123
+ bindInfo?: any;
124
+ email?: string;
125
+ }): Promise<LoginState>;
117
126
  setCustomSignFunc(getTickFn: authModels.GetCustomSignTicketFn): void;
118
127
  signInWithCustomTicket(): Promise<LoginState>;
119
128
  signIn(params: authModels.SignInRequest): Promise<LoginState>;
@@ -175,6 +184,7 @@ declare class Auth {
175
184
  modifyPasswordWithoutLogin(params: authModels.ModifyPasswordWithoutLoginRequest): Promise<void>;
176
185
  getUserBehaviorLog(params: authModels.GetUserBehaviorLog): Promise<authModels.GetUserBehaviorLogRes>;
177
186
  private createLoginState;
187
+ private signInWithUsername;
178
188
  }
179
189
  type TInitAuthOptions = Pick<ICloudbaseAuthConfig, 'region' | 'persistence'> & Partial<AuthOptions>;
180
190
  export declare function generateAuthInstance(config: TInitAuthOptions, options?: {