From 99d6b39e00ccea475eb8429323e9d6ae08135e24 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Mon, 25 Jan 2021 18:16:08 +0100 Subject: [PATCH] auth: Run removeInvalidTokens 5s after startup This should prevent problem with the AuthToken purge on Sundays, as the service is either running on sunday or will be restarted there after. Also move base64url comment to right function Signed-off-by: Philip Molares --- src/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index d921cb4c2..5fa99ecca 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -85,7 +85,7 @@ export class AuthService { // This is a very high ceiling unlikely to hinder legitimate usage, // but should prevent possible attack vectors throw new TooManyTokensError( - `User '${user.displayName}' has already 200 tokens and can't have anymore`, + `User '${user.userName}' has already 200 tokens and can't have anymore`, ); } const secret = await this.randomString(64);