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.SetGuardianFactorPhoneTemplatesRequestContent{
EnrollmentMessage: "enrollment_message",
VerificationMessage: "verification_message",
}
client.Guardian.Factors.Phone.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}}"
}Customize the messages sent to complete phone enrollment and verification (subscription required).
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.SetGuardianFactorPhoneTemplatesRequestContent{
EnrollmentMessage: "enrollment_message",
VerificationMessage: "verification_message",
}
client.Guardian.Factors.Phone.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-sdk8048.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.
Phone 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.
このページは役に立ちましたか?