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, }