Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(user): add methods to delete totp and backup_code #331

Conversation

NicolasLopes7
Copy link
Contributor

No description provided.

@NicolasLopes7 NicolasLopes7 requested a review from a team as a code owner September 26, 2024 20:50
return nil, err
}
req := clerk.NewAPIRequest(http.MethodDelete, path)
resource := &MultifactorAuthentication{}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ It's intentional that this isn't the usual DeletedResource type right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, usually it is, but for these MFAs endpoints we're deleting all the records from a userID, so we are returning just the userID (I found a bit odd too, but that's how it was) https://clerk.com/docs/reference/backend-api/tag/Users#operation/DisableMFA

@NicolasLopes7 NicolasLopes7 requested review from LauraBeatris and a team September 26, 2024 21:32
@NicolasLopes7 NicolasLopes7 merged commit 000038e into v2 Sep 26, 2024
7 checks passed
@NicolasLopes7 NicolasLopes7 deleted the nicolas/dash-331-dapi-delete-add-delete-totp-as-it-is-in-fapi branch September 26, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants