Add a note about device names
continuous-integration/drone/push Build is passing Details

pull/1/head
inexcode 2022-02-16 17:23:27 +03:00
parent c1e5c07745
commit 8acf799ad5
1 changed files with 3 additions and 1 deletions

View File

@ -122,6 +122,7 @@ POST `/auth/new_device/authorize` is used with two arguments:
- If new device token is incorrect, does not exist of expired, 404 error is returned
- `device` is the device name.
- If the name already taken, random suffix will be added.
- Name SHOULD only contain `[^a-zA-Z0-9]`. All other symbols will be replaced with `_`
```mermaid
sequenceDiagram
@ -151,4 +152,5 @@ POST `/auth/recovery_token/use` to use the token. Two required arguments:
- `token` is the recovery token
- If recovery token is incorrect, does not exist of expired, 404 error is returned
- `device` is the device name
- If the name already taken, random suffix will be added.
- If the name already taken, random suffix will be added.
- Name SHOULD only contain `[^a-zA-Z0-9]`. All other symbols will be replaced with `_`