mirror of
https://github.com/immich-app/immich.git
synced 2024-12-23 02:06:15 +02:00
14 lines
343 B
TypeScript
14 lines
343 B
TypeScript
import { APIKeyEntity } from '@app/infra/entities';
|
|
import { authStub } from './auth.stub';
|
|
import { userStub } from './user.stub';
|
|
|
|
export const keyStub = {
|
|
admin: Object.freeze({
|
|
id: 'my-random-guid',
|
|
name: 'My Key',
|
|
key: 'my-api-key (hashed)',
|
|
userId: authStub.admin.id,
|
|
user: userStub.admin,
|
|
} as APIKeyEntity),
|
|
};
|