From f105ce537fe43bb78c0a7b47dbd0f02168858518 Mon Sep 17 00:00:00 2001 From: mifi Date: Tue, 2 May 2023 20:36:40 -0400 Subject: [PATCH] Prettier! --- lib/utils/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/auth.ts b/lib/utils/auth.ts index 28e447d..0cd5b95 100644 --- a/lib/utils/auth.ts +++ b/lib/utils/auth.ts @@ -5,7 +5,7 @@ import { sign } from './jwt'; export const getAuthenticationBundle = async (username: string, password: string) => { const auth = await Auth.findByUsername(username).catch(); const isAuthenticated = !!auth && (auth as AuthModel).authenticate(password); - const record = isAuthenticated ? (auth as AuthPrivate).record as string : null; + const record = isAuthenticated ? ((auth as AuthPrivate).record as string) : null; const token = sign(record || undefined); return { record,