Back to Node Auth0

Class EnrollmentsClient

docs/classes/management.SDK.EnrollmentsClient.html

5.9.15.9 KB
Original Source

Class EnrollmentsClient

Index

Constructors

constructor

Methods

createTicketgetdelete

Properties

_options

Constructors

constructor

new EnrollmentsClient(options: BaseClientOptions): EnrollmentsClient

Parameters

Returns EnrollmentsClient

Methods

createTicket

createTicket(
request: CreateGuardianEnrollmentTicketRequestContent,
requestOptions?: EnrollmentsClient.RequestOptions,
): HttpResponsePromise<CreateGuardianEnrollmentTicketResponseContent>

Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.

Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

Parameters

Request-specific configuration.

Returns HttpResponsePromise<CreateGuardianEnrollmentTicketResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Example

await client.guardian.enrollments.createTicket({ user_id: "user_id" })Copy

get

get(
id: string,
requestOptions?: EnrollmentsClient.RequestOptions,
): HttpResponsePromise<GetGuardianEnrollmentResponseContent>

Retrieve details, such as status and type, for a specific multi-factor authentication enrollment registered to a user account.

Parameters

  • id: string

ID of the enrollment to be retrieve.

Request-specific configuration.

Returns HttpResponsePromise<GetGuardianEnrollmentResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Example

await client.guardian.enrollments.get("id")Copy

delete

delete(
id: string,
requestOptions?: EnrollmentsClient.RequestOptions,
): HttpResponsePromise<void>

Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes.

Parameters

  • id: string

ID of the enrollment to be deleted.

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Example

await client.guardian.enrollments.delete("id")Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods createTicketgetdelete Properties _options