Skip to content

Commit

Permalink
Update authCallback.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
N7Remus authored Jul 30, 2024
1 parent 5e27040 commit 4e24bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -37,4 +37,4 @@ export const authCallback = () => new Router().get('/auth/callback', (ctx) => {

ctx.status = 200;
})
.routes();
.routes();

0 comments on commit 4e24bea

Please # to comment.