tencentcloud-webar 1.0.23-11 → 1.0.23-13

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/auth.ts CHANGED
@@ -1,33 +1,2 @@
1
-
2
1
  // 鉴权相关
3
- import { Auth } from 'src/auth'
4
- import { AuthData } from 'src/auth'
5
-
6
- let auth: Auth
7
-
8
- export async function authorize(
9
- licenseKey: string,
10
- appId: string,
11
- authFunc:()=>Promise<AuthData>,
12
- language? : string
13
- ) {
14
- /* IFTRUE_platform_h5*/
15
- auth = new Auth(licenseKey, appId, authFunc)
16
- /*FITRUE_platform_h5*/
17
-
18
- /* IFTRUE_platform_wx*/
19
- //@ts-ignore
20
- const accountInfo = wx.getAccountInfoSync()
21
- const wxappid = accountInfo.miniProgram.appId
22
- auth = new Auth(licenseKey, appId, authFunc, wxappid)
23
- /*FITRUE_platform_wx*/
24
- language && (auth.language = language)
25
- await auth.go()
26
- return {
27
- getEffectList: auth.getEffectList.bind(auth),
28
- getFilterList: auth.getFilterList.bind(auth)
29
- }
30
- }
31
- /*IFTRUE_platform_wx*/
32
- export {authorizeWxCamera} from './src/wx/authorize'
33
- /*FITRUE_platform_wx*/
2
+ export { authorize } from "src/auth";