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.SetGuardianFactorsProviderPhoneRequestContent{
Provider: management.GuardianFactorsProviderSmsProviderEnumAuth0,
}
client.Guardian.Factors.Phone.SetProvider(
context.TODO(),
request,
)
}{
"provider": "auth0"
}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.SetGuardianFactorsProviderPhoneRequestContent{
Provider: management.GuardianFactorsProviderSmsProviderEnumAuth0,
}
client.Guardian.Factors.Phone.SetProvider(
context.TODO(),
request,
)
}{
"provider": "auth0"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
auth0, twilio, phone-message-hook Returns selected Phone provider configuration
auth0, twilio, phone-message-hook Was this page helpful?