mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
26 lines
677 B
TypeScript
26 lines
677 B
TypeScript
import { UserTokenEntity } from '@app/infra/entities';
|
|
import { userStub } from './user.stub';
|
|
|
|
export const userTokenStub = {
|
|
userToken: Object.freeze<UserTokenEntity>({
|
|
id: 'token-id',
|
|
token: 'auth_token',
|
|
userId: userStub.user1.id,
|
|
user: userStub.user1,
|
|
createdAt: new Date('2021-01-01'),
|
|
updatedAt: new Date(),
|
|
deviceType: '',
|
|
deviceOS: '',
|
|
}),
|
|
inactiveToken: Object.freeze<UserTokenEntity>({
|
|
id: 'not_active',
|
|
token: 'auth_token',
|
|
userId: userStub.user1.id,
|
|
user: userStub.user1,
|
|
createdAt: new Date('2021-01-01'),
|
|
updatedAt: new Date('2021-01-01'),
|
|
deviceType: 'Mobile',
|
|
deviceOS: 'Android',
|
|
}),
|
|
};
|