mirror of
https://github.com/twentyhq/twenty.git
synced 2025-01-03 17:53:58 +03:00
Merge remote-tracking branch 'origin/main' into fix/single-workspace-mode-with-multiple-workspaces
This commit is contained in:
commit
56daedb78f
@ -66,8 +66,15 @@ describe('RefreshTokenService', () => {
|
|||||||
describe('verifyRefreshToken', () => {
|
describe('verifyRefreshToken', () => {
|
||||||
it('should verify a refresh token successfully', async () => {
|
it('should verify a refresh token successfully', async () => {
|
||||||
const mockToken = 'valid-refresh-token';
|
const mockToken = 'valid-refresh-token';
|
||||||
const mockJwtPayload = { jti: 'token-id', sub: 'user-id' };
|
const mockJwtPayload = {
|
||||||
const mockAppToken = { id: 'token-id', revokedAt: null };
|
jti: 'token-id',
|
||||||
|
sub: 'user-id',
|
||||||
|
};
|
||||||
|
const mockAppToken = {
|
||||||
|
id: 'token-id',
|
||||||
|
workspaceId: 'workspace-id',
|
||||||
|
revokedAt: null,
|
||||||
|
};
|
||||||
const mockUser: Partial<User> = {
|
const mockUser: Partial<User> = {
|
||||||
id: 'some-id',
|
id: 'some-id',
|
||||||
firstName: 'John',
|
firstName: 'John',
|
||||||
|
@ -5,8 +5,8 @@ import { createOneRelationMetadataFactory } from 'test/integration/metadata/suit
|
|||||||
import { deleteOneRelationMetadataItemFactory } from 'test/integration/metadata/suites/utils/delete-one-relation-metadata-factory.util';
|
import { deleteOneRelationMetadataItemFactory } from 'test/integration/metadata/suites/utils/delete-one-relation-metadata-factory.util';
|
||||||
import { fieldsMetadataFactory } from 'test/integration/metadata/suites/utils/fields-metadata-factory.util';
|
import { fieldsMetadataFactory } from 'test/integration/metadata/suites/utils/fields-metadata-factory.util';
|
||||||
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
|
import { makeMetadataAPIRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
|
||||||
import { objectsMetadataFactory } from 'test/integration/metadata/suites/utils/objects-metadata-factory.util';
|
import { updateOneObjectMetadataItemFactory } from 'test/integration/metadata/suites/object-metadata/utils/update-one-object-metadata-factory.util';
|
||||||
import { updateOneObjectMetadataItemFactory } from 'test/integration/metadata/suites/utils/update-one-object-metadata-factory.util';
|
import { objectsMetadataFactory } from 'test/integration/metadata/suites/object-metadata/utils/objects-metadata-factory.util';
|
||||||
|
|
||||||
import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
||||||
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
||||||
|
Loading…
Reference in New Issue
Block a user