package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
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.SetGuardianFactorsProviderSmsRequestContent{
Provider: management.GuardianFactorsProviderSmsProviderEnumAuth0,
}
client.Guardian.Factors.Sms.SetProvider(
context.TODO(),
request,
)
}{
"provider": "auth0"
}This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
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.SetGuardianFactorsProviderSmsRequestContent{
Provider: management.GuardianFactorsProviderSmsProviderEnumAuth0,
}
client.Guardian.Factors.Sms.SetProvider(
context.TODO(),
request,
)
}{
"provider": "auth0"
}Documentation Index
Fetch the complete documentation index at: https://auth0-quickstart-flutter-windows.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.
auth0, twilio, phone-message-hook Returns selected SMS provider configuration
auth0, twilio, phone-message-hook Cette page vous a-t-elle été utile ?