signin
signin(email: String!, password: String!): SigninResult!Informations d'appel
Arguments
| Paramètre | Type | Valeur par défaut | Statut |
|---|---|---|---|
String! | — | Obligatoire | |
| password | String! | — | 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!"
}
}'