Autentica um membro e retorna o JWT
POST/api/auth/login
- Auth
- Öffentlich
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.
Endpoint público. O token retornado vale 7 dias.
Request-Body application/json
| Name | Typ | Beschreibung |
|---|---|---|
emailPflicht | string (email) | |
passwordPflicht | string (password) |
Antworten
| Status | Beschreibung |
|---|---|
200 | Login realizado com sucesso. |
400 | Requisição inválida — falha de validação. |
401 | Token ausente, inválido ou expirado. |
curl-Beispiel
curl -X POST "https://api.memberfy.net/api/auth/login" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"Senha@123"}'