mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56:41 +01:00
「📝」 doc(auth): added doc for 2fa in login
This commit is contained in:
@ -21,7 +21,8 @@ Input needed :
|
||||
```json
|
||||
{
|
||||
"user": "<string>",
|
||||
"password": "<string>"
|
||||
"password": "<string>",
|
||||
(optional)"token": "<2fa token>"
|
||||
}
|
||||
```
|
||||
|
||||
@ -32,7 +33,13 @@ Can return:
|
||||
"msg": "Login successfully"
|
||||
}
|
||||
```
|
||||
- 400 with response
|
||||
- 402 with response
|
||||
```json
|
||||
{
|
||||
"msg": "Please specify a 2fa token"
|
||||
}
|
||||
```
|
||||
- 400 || 401 with response
|
||||
```json
|
||||
{
|
||||
"error": "<corresponding error>"
|
||||
|
||||
Reference in New Issue
Block a user