@cloudbase/auth 3.3.1 → 3.3.3
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/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +60 -41
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +60 -41
- package/dist/miniprogram/index.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +23 -9
package/dist/cjs/index.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ declare class Auth extends AuthV1Compat {
|
|
|
129
129
|
verifyOtp(params: VerifyOtpReq): Promise<SignInRes>;
|
|
130
130
|
getSession(): Promise<SignInRes>;
|
|
131
131
|
refreshSession(refresh_token?: string): Promise<SignInRes>;
|
|
132
|
-
getUser(): Promise<GetUserRes>;
|
|
132
|
+
getUser(isRefresh?: boolean): Promise<GetUserRes>;
|
|
133
133
|
refreshUser(): Promise<CommonRes>;
|
|
134
134
|
updateUser(params: UpdateUserReq): Promise<GetUserRes | UpdateUserWithVerificationRes>;
|
|
135
135
|
getUserIdentities(): Promise<GetUserIdentitiesRes>;
|
|
@@ -157,7 +157,7 @@ declare class Auth extends AuthV1Compat {
|
|
|
157
157
|
withCaptcha: boolean;
|
|
158
158
|
}): Promise<authModels.GetVerificationResponse>;
|
|
159
159
|
get currentUser(): User;
|
|
160
|
-
getCurrentUser(): Promise<(authModels.UserInfo & Partial<User>) | null>;
|
|
160
|
+
getCurrentUser(isRefresh?: boolean): Promise<(authModels.UserInfo & Partial<User>) | null>;
|
|
161
161
|
signInAnonymouslyInWx({ useWxCloud, }?: {
|
|
162
162
|
useWxCloud?: boolean;
|
|
163
163
|
}): Promise<LoginState>;
|