mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00: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),
 | 
						|
};
 |