@putdotio/sdk 17.0.2 → 17.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1178,14 +1178,16 @@ const verifyTOTP = (twoFactorScopedToken, code) => decodeAndRunRedacted("auth",
|
|
|
1178
1178
|
code,
|
|
1179
1179
|
twoFactorScopedToken
|
|
1180
1180
|
}, (decodedInput) => requestJson(VerifyTOTPEnvelopeSchema, {
|
|
1181
|
-
auth: {
|
|
1181
|
+
auth: {
|
|
1182
|
+
token: decodedInput.twoFactorScopedToken,
|
|
1183
|
+
type: "token"
|
|
1184
|
+
},
|
|
1182
1185
|
body: {
|
|
1183
1186
|
type: "form",
|
|
1184
1187
|
value: { code: decodedInput.code }
|
|
1185
1188
|
},
|
|
1186
1189
|
method: "POST",
|
|
1187
|
-
path: "/v2/two_factor/verify/totp"
|
|
1188
|
-
query: { oauth_token: decodedInput.twoFactorScopedToken }
|
|
1190
|
+
path: "/v2/two_factor/verify/totp"
|
|
1189
1191
|
}).pipe(selectJsonFields("token", "user_id"))).pipe(withOperationErrors(VerifyTOTPErrorSpec));
|
|
1190
1192
|
const getRecoveryCodes = () => requestJson(RecoveryCodesEnvelopeSchema, {
|
|
1191
1193
|
method: "GET",
|