Skip to content

Commit

Permalink
Fix totp data code name.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 23, 2024
1 parent 355b7d6 commit f1bca54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class LoginClient {
await Promise.resolve();
}

async registerDevice(options = { name: '', type: '', totpData: {} }) {
async registerDevice(options = { name: '', type: '', totp: {} }) {
const userIdentity = await this.getUserIdentity();
if (!userIdentity) {
const e = Error('User must be logged to configure user profile data.');
Expand Down Expand Up @@ -251,7 +251,8 @@ class LoginClient {
} else if (options.type === 'TOTP') {
request = {
name: options.name,
totpData: options.totpData,
code: options.totp.verificationCode,
totpData: options.totp,
type: 'TOTP'
};
}
Expand Down

0 comments on commit f1bca54

Please sign in to comment.