Skip to content

Commit 08616fe

Browse files
chore: delete useless codes
1 parent 2e25940 commit 08616fe

File tree

1 file changed

+0
-20
lines changed
  • examples/miniapp-wx/miniapp/pages/index

1 file changed

+0
-20
lines changed

examples/miniapp-wx/miniapp/pages/index/index.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,6 @@ Page({
3838
console.log('authing.loginByCode res: ', res)
3939
},
4040

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-
6141
/**
6242
* 需要在真机上测试,微信开发者工具不会返回 code
6343
* @param {*} e

0 commit comments

Comments
 (0)