I'm facing an issue with casdoor-go-sdk while trying to disable MFA.
curl --location --request DELETE 'http://localhost:8080/mfa/delete' \
--header 'accept: application/json' \
--header 'Authorization: Bearer TOKEN' \
--header 'Cookie: casdoor_session_id=33d52c14da83ef185e48a348a61df131'
Response
{
"error": "Failed to delete MFA: unexpected end of JSON input"
}
Code snippet to call delete
// Call Casdoor SDK's Delete method
// This hits: POST /api/delete-mfa
err := casdoorClient.Delete(
user.User.Owner,
user.User.Name,
)
Am I missing something here?
Thanks in advance.
