From bdecf730008bbfdf6c894d88a9d5d6343e70b899 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 22 Dec 2020 21:52:30 -0800 Subject: [PATCH] More notes on jwt authentication --- server-api/endpoints.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server-api/endpoints.md b/server-api/endpoints.md index 5c928f9..58179b7 100644 --- a/server-api/endpoints.md +++ b/server-api/endpoints.md @@ -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