fix: remove this method for duplicating the list (ironically correctly)

pull/177/head
tycrek 1 year ago
parent a774ab311b
commit 87c8e64698
No known key found for this signature in database
GPG Key ID: FF8A54DCE404885A

@ -195,9 +195,9 @@ export const verifyValidToken = (req: Request) => {
return req.headers.authorization && findFromToken(req.headers.authorization);
};
// todo: This is definitely broken
// todo: move inside of onStart (currently broken)
// Monitor auth.json for changes (triggered by running 'npm run new-token')
fs.watch(path('auth.json'), { persistent: false },
/* fs.watch(path('auth.json'), { persistent: false },
(eventType: String) => eventType === 'change' && fs.readJson(path('auth.json'))
.then((json: { users: JSON[] }) => {
if (!(arrayEquals(Object.keys(users), Object.keys(json.users)))) {
@ -207,3 +207,4 @@ fs.watch(path('auth.json'), { persistent: false },
}
})
.catch(console.error));
*/
Loading…
Cancel
Save