mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 13:20:44 +01:00
chore(server): Add TODO
This commit is contained in:
parent
808c680184
commit
0683fa6b97
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ module.exports = (server: http.Server) => {
|
||||||
|
|
||||||
ws.on('request', async (request) => {
|
ws.on('request', async (request) => {
|
||||||
const q = request.resourceURL.query as ParsedUrlQuery;
|
const q = request.resourceURL.query as ParsedUrlQuery;
|
||||||
|
|
||||||
|
// TODO: トークンが間違ってるなどしてauthenticateに失敗したら
|
||||||
|
// コネクション切断するなりエラーメッセージ返すなりする
|
||||||
|
// (現状はエラーがキャッチされておらずサーバーのログに流れて邪魔なので)
|
||||||
const [user, app] = await authenticate(q.i as string);
|
const [user, app] = await authenticate(q.i as string);
|
||||||
|
|
||||||
const connection = request.accept();
|
const connection = request.accept();
|
||||||
|
|
Loading…
Reference in a new issue