← Retour à la liste des opérations
Mutation

setupTwoFactor

setupTwoFactor: TwoFactorSetup!

Informations d'appel

Point d'accès

https://api.revclic.com/

Méthode

POST

Authentification

Jeton Bearer (JWT)

Retourne

TwoFactorSetup!

Arguments

Cette opération n'attend aucun paramètre.

Exemple de requête GraphQL

mutation ExecuteSetupTwoFactor {
  setupTwoFactor {
    secret
    qrCodeUri
  }
}

Exemple de variables

{}

Payload JSON complet

{
  "query": "mutation ExecuteSetupTwoFactor {\n  setupTwoFactor {\n    secret\n    qrCodeUri\n  }\n}",
  "variables": {}
}

Exemple cURL à tester

curl -X POST https://api.revclic.com/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
  "query": "mutation ExecuteSetupTwoFactor {\n  setupTwoFactor {\n    secret\n    qrCodeUri\n  }\n}",
  "variables": {}
}'

Types associés