Closed adar2378 closed 11 months ago
I have an OTPDevice
{ "count": 1, "next": null, "previous": null, "results": [ { "id": 2, "name": "saiful@apexive.com", "type": "email", "confirmed": false, "key": null } ] }
/api/v1/auth/otp/
api/v1/auth/otp-device/2/confirm/
{"code":"068096"}
Getting error: status code = 400,
{ "errors": [ { "message": "Invalid device type. Must be one of email, totp, sms", "code": "invalid" } ] }
@adar2378 You need to pass type in URL api/v1/auth/otp-device/2/confirm/?type=email.
api/v1/auth/otp-device/2/confirm/?type=email
I fixed the API schema, added type param, so should work now
type
I have an OTPDevice
/api/v1/auth/otp/
and getting OTP codeapi/v1/auth/otp-device/2/confirm/
Payload:Getting error: status code = 400,