From 2b20cf34d362683a155d205dc46460e27a934e04 Mon Sep 17 00:00:00 2001 From: MoizAdnan Date: Wed, 14 Aug 2024 16:02:41 +0500 Subject: [PATCH] refactor: Update userApiKeySchema to remove format constraint on token field --- packages/common/src/schemas/user/user-api-key.schema.ts | 4 +--- .../src/user/identity-provider/identity-provider.test.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/common/src/schemas/user/user-api-key.schema.ts b/packages/common/src/schemas/user/user-api-key.schema.ts index babb681017..6434ddc04b 100644 --- a/packages/common/src/schemas/user/user-api-key.schema.ts +++ b/packages/common/src/schemas/user/user-api-key.schema.ts @@ -41,9 +41,7 @@ export const userApiKeySchema = Type.Object( id: Type.String({ format: 'uuid' }), - token: Type.String({ - format: 'uuid' - }), + token: Type.String(), userId: TypedString({ format: 'uuid' }), diff --git a/packages/server-core/src/user/identity-provider/identity-provider.test.ts b/packages/server-core/src/user/identity-provider/identity-provider.test.ts index 86f7ab341e..b7b17e89ec 100755 --- a/packages/server-core/src/user/identity-provider/identity-provider.test.ts +++ b/packages/server-core/src/user/identity-provider/identity-provider.test.ts @@ -36,7 +36,7 @@ import { destroyEngine } from '@etherealengine/ecs/src/Engine' import { Application } from '../../../declarations' import { createFeathersKoaApp } from '../../createApp' -describe('identity-provider.service', () => { +describe('identity-provider.test', () => { let userId: UserID let accessToken: string let app: Application