We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e25940 commit 08616feCopy full SHA for 08616fe
examples/miniapp-wx/miniapp/pages/index/index.ts
@@ -38,26 +38,6 @@ Page({
38
console.log('authing.loginByCode res: ', res)
39
},
40
41
- async loginByPhone () {
42
- const { encryptedData, iv } = await wx.getUserProfile({
43
- desc: 'getUserProfile1'
44
- })
45
-
46
- const res = await authing.loginByPhone({
47
- connection: 'wechat_mini_program_phone',
48
- extIdpConnidentifier: 'authing-zhaoyiming-miniprogram',
49
- wechatMiniProgramPhonePayload: {
50
- encryptedData,
51
- iv
52
- },
53
- options: {
54
- scope: 'openid profile offline_access'
55
- }
56
57
58
- console.log('authing.loginByPhone res: ', res)
59
60
61
/**
62
* 需要在真机上测试,微信开发者工具不会返回 code
63
* @param {*} e
0 commit comments