Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Add m.Guardian.Enrollment.Delete
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Nov 5, 2020
1 parent dbe426d commit 6d0e37c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions management/guardian.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ func (m *EnrollmentManager) Get(id string, opts ...RequestOption) (en *Enrollmen
return
}

// Delete an enrollment to allow the user to enroll with multi-factor authentication again.
//
// See: https://auth0.com/docs/api/management/v2#!/Guardian/delete_enrollments_by_id
func (m *EnrollmentManager) Delete(id string, opts ...RequestOption) (err error) {
err = m.Request("DELETE", m.URI("guardian", "enrollments", id), nil, opts...)
return
}

type MultiFactorManager struct {
*Management

Expand Down

0 comments on commit 6d0e37c

Please sign in to comment.