メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
phone
/
selected-provider
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Guardian.Factors.Phone.GetSelectedProvider(
        context.TODO(),
    )
}
{
  "provider": "auth0"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

レスポンス

Returns selected Phone provider configuration

provider
enum<string>
利用可能なオプション:
auth0,
twilio,
phone-message-hook