mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	* refactor: AuthUserDto => AuthDto * refactor: reorganize auth-dto * refactor: AuthUser() => Auth()
		
			
				
	
	
		
			14 lines
		
	
	
		
			348 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			348 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.user.id,
 | 
						|
    user: userStub.admin,
 | 
						|
  } as APIKeyEntity),
 | 
						|
};
 |