管理 MFA 口令
查询 MFA 状态
(async function() { const authing = await new Authing({ clientId: 'your_client_id', timestamp: Math.round(new Date() / 1000), nonce: Math.ceil(Math.random() * Math.pow(10, 6)), }); try { await authing.queryMFA({ userId: '用户 id', userPoolId: '用户所属用户池 id' }) } catch (err) { console.log(err) } })();
{ "_id": "5d6789aea9ee8e9a77b73521", "userId": "5d678970a9ee8e8f75b7350f", "userPoolId": "5cbd6716aaaa70cb9a58d86f", "shareKey": "NRMFAWTPMZ5FOQZWKNJFS5BXOZXGOV3Z", "enable": true }
更改 MFA 状态
Last updated
Was this helpful?