diff --git a/src/authchecker.ts b/src/authchecker.ts index 4264130..f61f35f 100644 --- a/src/authchecker.ts +++ b/src/authchecker.ts @@ -4,14 +4,6 @@ import { getConnectionManager } from 'typeorm'; import { IllegalJWTError, NoPermissionError, UserNonexistantOrRefreshtokenInvalidError } from './errors/AuthError'; import { User } from './models/entities/User'; // ----------- -const sampletoken = jwt.sign({ - "permissions": { - "TRACKS": ["read", "update", "delete", "add"] - // "TRACKS": [] - } -}, "securekey") -console.log(`sampletoken: ${sampletoken}`); -// ----------- const authchecker = async (action: Action, permissions: string | string[]) => { let required_permissions = undefined if (typeof permissions === "string") {