管理 MFA 口令
查询 MFA 状态
(async function() { const authing = new Authing({ userPoolId: 'your_userpool_id' }); try { const login = await authing.login({ email: 'test@test.com', password: '123456' }) await authing.queryMFA({ userId: '用户 id', }) } catch (err) { console.log(err) } })();
{ "_id": "5d6789aea9ee8e9a77b73521", "userId": "5d678970a9ee8e8f75b7350f", "userPoolId": "5cbd6716aaaa70cb9a58d86f", "shareKey": "NRMFAWTPMZ5FOQZWKNJFS5BXOZXGOV3Z", "enable": true }
更改 MFA 状态
Last updated
Was this helpful?