More notes on jwt authentication
This commit is contained in:
parent
11251fe6d3
commit
bdecf73000
@ -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
|
Basically every endpoint except for `/join` and `/meta` require the folowing auth
|
||||||
data at a bare minimum.
|
data at a bare minimum.
|
||||||
|
|
||||||
* id: u64 -> User id | Public data
|
* id: u64 -> User id [ Public to the instance ]
|
||||||
* secret: String -> sever generated token to be used for endpoint authentication
|
|
||||||
|
* 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
|
## Chat api
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user