@cloudbase/auth 2.7.3-beta.0 → 2.7.4-beta.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.
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +7 -7
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +7 -7
- package/dist/miniprogram/index.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/auth",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4-beta.0",
|
|
4
4
|
"description": "cloudbase javascript sdk auth componets",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@cloudbase/adapter-wx_mp": "^1.0.0",
|
|
35
|
-
"@cloudbase/oauth": "^2.
|
|
36
|
-
"@cloudbase/utilities": "^2.7.
|
|
35
|
+
"@cloudbase/oauth": "^2.7.4-beta.0",
|
|
36
|
+
"@cloudbase/utilities": "^2.7.4-beta.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@cloudbase/types": "^2.7.
|
|
39
|
+
"@cloudbase/types": "^2.7.4-beta.0",
|
|
40
40
|
"@types/node": "^22.1.0",
|
|
41
41
|
"terser-webpack-plugin": "^3.0.2",
|
|
42
42
|
"webpack-bundle-analyzer": "^4.9.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1b6928b476a4035d8a96743fa900203f9b9a65a0"
|
|
45
45
|
}
|
package/src/index.ts
CHANGED
|
@@ -830,11 +830,12 @@ class Auth {
|
|
|
830
830
|
`如果问题依然存在,建议到官方问答社区提问或寻找帮助:${COMMUNITY_SITE_URL}`,
|
|
831
831
|
],
|
|
832
832
|
})
|
|
833
|
-
public async signOut() {
|
|
833
|
+
public async signOut(params?: authModels.SignoutRequest): Promise<void | authModels.SignoutReponse> {
|
|
834
834
|
const { userInfoKey } = this.cache.keys
|
|
835
|
-
await this.oauthInstance.authApi.signOut()
|
|
835
|
+
const res = await this.oauthInstance.authApi.signOut(params)
|
|
836
836
|
await this.cache.removeStoreAsync(userInfoKey)
|
|
837
837
|
eventBus.fire(EVENTS.LOGIN_STATE_CHANGED)
|
|
838
|
+
return res
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
/**
|
|
@@ -1011,7 +1012,7 @@ class Auth {
|
|
|
1011
1012
|
return this.oauthInstance.authApi.deleteMe(params)
|
|
1012
1013
|
}
|
|
1013
1014
|
|
|
1014
|
-
public async getProviders(): Promise<authModels.
|
|
1015
|
+
public async getProviders(): Promise<authModels.ProvidersResponse> {
|
|
1015
1016
|
return this.oauthInstance.authApi.getProviders()
|
|
1016
1017
|
}
|
|
1017
1018
|
|