From 4f4cdb6fe583650766caf3ee61d93f5407810674 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 13 Sep 2021 13:39:55 +0200 Subject: [PATCH] remove email from decoding --- backend/src/jwt/decode.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/src/jwt/decode.ts b/backend/src/jwt/decode.ts index a414e0c41..47cf62154 100644 --- a/backend/src/jwt/decode.ts +++ b/backend/src/jwt/decode.ts @@ -7,15 +7,12 @@ import CONFIG from '../config/' export default (token: string): any => { if (!token) return null let sessionId = null - const email = null try { const decoded = jwt.verify(token, CONFIG.JWT_SECRET) sessionId = decoded.sub - // email = decoded.email return { token, sessionId, - email, } } catch (err) { return null