Skip to content

Commit 722762d

Browse files
sdjddleeyeh
authored andcommitted
feat(user): add definition of loginWithMiniApp
1 parent 2be4dfa commit 722762d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

storage.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,12 @@ interface MiniappOptions extends UnionOptions {
681681

682682
interface MiniappLoginOptions extends OAuthLoginOptions, MiniappOptions {}
683683

684+
interface AuthInfo {
685+
authData: { [key: string]: any };
686+
provider: string;
687+
platform?: string;
688+
}
689+
684690
/**
685691
* @class
686692
*
@@ -704,6 +710,10 @@ export class User extends Object {
704710
static become(sessionToken: string): Promise<User>;
705711

706712
static loginAnonymously(): Promise<User>;
713+
static loginWithMiniApp(
714+
authInfo?: AuthInfo,
715+
options?: OAuthLoginOptions
716+
): Promise<User>;
707717
static loginWithWeapp(options?: MiniappLoginOptions): Promise<User>;
708718
static loginWithWeappWithUnionId(
709719
unionId: string,

0 commit comments

Comments
 (0)