From 4e24bea914b8b48ab6174fb47b6b6848451146b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mai=20G=C3=A1bor?= Date: Tue, 30 Jul 2024 21:27:15 +0200 Subject: [PATCH] Update authCallback.ts --- src/authCallback.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authCallback.ts b/src/authCallback.ts index fe0b744..2b17f37 100644 --- a/src/authCallback.ts +++ b/src/authCallback.ts @@ -5,7 +5,7 @@ export const authCallback = () => new Router().get('/auth/callback', (ctx) => { // eslint-disable-next-line camelcase const { access_token } = ctx.request.query; - const clean = DOMPurify.sanitize(access_token); + const clean = (access_token: string): string => DOMPurify.sanitize(access_token); // eslint-disable-next-line camelcase if (!access_token) { @@ -37,4 +37,4 @@ export const authCallback = () => new Router().get('/auth/callback', (ctx) => { ctx.status = 200; }) - .routes(); \ No newline at end of file + .routes();