← Retour à la liste des opérations
Mutation

signin

signin(email: String!, password: String!): SigninResult!

Informations d'appel

Point d'accès

https://api.revclic.com/

Méthode

POST

Authentification

Jeton Bearer (JWT)

Retourne

SigninResult!

Arguments

ParamètreTypeValeur par défautStatut
emailString!Obligatoire
passwordString!Obligatoire

Exemple de requête GraphQL

mutation ExecuteSignin($email: String!, $password: String!) {
  signin(email: $email, password: $password) {
    twoFactorRequired
    challengeToken
    auth { token refreshToken user { id email firstName lastName } }
  }
}

Exemple de variables

{
  "email": "[email protected]",
  "password": "StrongPassword123!"
}

Payload JSON complet

{
  "query": "mutation ExecuteSignin($email: String!, $password: String!) {\n  signin(email: $email, password: $password) {\n    twoFactorRequired\n    challengeToken\n    auth { token refreshToken user { id email firstName lastName } }\n  }\n}",
  "variables": {
    "email": "[email protected]",
    "password": "StrongPassword123!"
  }
}

Exemple cURL à tester

curl -X POST https://api.revclic.com/ \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
  "query": "mutation ExecuteSignin($email: String!, $password: String!) {\n  signin(email: $email, password: $password) {\n    twoFactorRequired\n    challengeToken\n    auth { token refreshToken user { id email firstName lastName } }\n  }\n}",
  "variables": {
    "email": "[email protected]",
    "password": "StrongPassword123!"
  }
}'

Types associés