From 92f26a5524a9dd8552fe993839d14b532aee8201 Mon Sep 17 00:00:00 2001 From: forehalo Date: Wed, 20 Mar 2024 18:06:08 +0800 Subject: [PATCH] fix(server): decode uri component before verify token --- packages/backend/server/src/core/auth/controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/server/src/core/auth/controller.ts b/packages/backend/server/src/core/auth/controller.ts index 47615005c8c3c..0cce8cd4d8521 100644 --- a/packages/backend/server/src/core/auth/controller.ts +++ b/packages/backend/server/src/core/auth/controller.ts @@ -141,6 +141,7 @@ export class AuthController { } email = decodeURIComponent(email); + token = decodeURIComponent(token); validators.assertValidEmail(email); const valid = await this.token.verifyToken(TokenType.SignIn, token, {