From 0ab4706dd4ed7b27dfeb1347f9ae75c9c7bfe29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mai=20G=C3=A1bor?= Date: Fri, 23 Aug 2024 14:39:05 +0200 Subject: [PATCH] update --- src/authCallback.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/authCallback.ts b/src/authCallback.ts index 2b17f37..eea38ba 100644 --- a/src/authCallback.ts +++ b/src/authCallback.ts @@ -5,7 +5,8 @@ export const authCallback = () => new Router().get('/auth/callback', (ctx) => { // eslint-disable-next-line camelcase const { access_token } = ctx.request.query; - const clean = (access_token: string): string => DOMPurify.sanitize(access_token); + // eslint-disable-next-line camelcase + const clean = DOMPurify.sanitize(access_token as string); // eslint-disable-next-line camelcase if (!access_token) {