package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
factors "github.com/auth0/go-auth0/management/management/guardian/factors"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &factors.SetGuardianFactorSmsTemplatesRequestContent{
EnrollmentMessage: "enrollment_message",
VerificationMessage: "verification_message",
}
client.Guardian.Factors.Sms.SetTemplates(
context.TODO(),
request,
)
}{
"enrollment_message": "{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.",
"verification_message": "{{code}} is your verification code for {{tenant.friendly_name}}"
}This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
factors "github.com/auth0/go-auth0/management/management/guardian/factors"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &factors.SetGuardianFactorSmsTemplatesRequestContent{
EnrollmentMessage: "enrollment_message",
VerificationMessage: "verification_message",
}
client.Guardian.Factors.Sms.SetTemplates(
context.TODO(),
request,
)
}{
"enrollment_message": "{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.",
"verification_message": "{{code}} is your verification code for {{tenant.friendly_name}}"
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-testing-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Message sent to the user when they are invited to enroll with a phone number.
Message sent to the user when they are prompted to verify their account.
SMS enrollment and verification templates successfully updated.
Message sent to the user when they are invited to enroll with a phone number.
Message sent to the user when they are prompted to verify their account.
Cette page vous a-t-elle été utile ?