From d9e02f47a4c31bce9899285944de0dc51428e345 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Mon, 12 Aug 2024 17:05:44 +0800 Subject: [PATCH] fix bug: #6946 --- packages/accounts/src/server/accounts-server.ts | 4 ++-- packages/accounts/src/server/types/jwt-data.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/accounts/src/server/accounts-server.ts b/packages/accounts/src/server/accounts-server.ts index 6c88bc724e..5d8673d574 100644 --- a/packages/accounts/src/server/accounts-server.ts +++ b/packages/accounts/src/server/accounts-server.ts @@ -491,8 +491,8 @@ export class AccountsServer { // token, isImpersonated, userId, - name, - email + // name, + // email }; const accessToken = generateAccessToken({ data: jwtData, diff --git a/packages/accounts/src/server/types/jwt-data.ts b/packages/accounts/src/server/types/jwt-data.ts index 6f70ffd8c3..eecfe1b8bb 100644 --- a/packages/accounts/src/server/types/jwt-data.ts +++ b/packages/accounts/src/server/types/jwt-data.ts @@ -2,13 +2,13 @@ * @Author: baozhoutao@steedos.com * @Date: 2022-03-28 09:35:34 * @LastEditors: baozhoutao@steedos.com - * @LastEditTime: 2022-07-01 15:01:17 + * @LastEditTime: 2024-08-12 17:04:03 * @Description: */ export interface JwtData { token?: string; isImpersonated: boolean; userId: string; - name: string, - email: string, + name?: string, + email?: string, }