More notes on jwt authentication

This commit is contained in:
shockrah 2020-12-22 21:52:30 -08:00
parent 11251fe6d3
commit bdecf73000

View File

@ -11,8 +11,15 @@ All parameters are to be passed in via json, other parameters are ignored
Basically every endpoint except for `/join` and `/meta` require the folowing auth
data at a bare minimum.
* id: u64 -> User id | Public data
* secret: String -> sever generated token to be used for endpoint authentication
* id: u64 -> User id [ Public to the instance ]
* jwt: String
To get a JWT you must `POST /login` with the following:
* id: u64 -> User id [ Public to the instance ]
* secret: String -> Server generated password
## Chat api