| 
						
						
						
					 | 
					@ -1,31 +1,32 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { AuthDeviceDto } from '@ghostfolio/api/app/auth-device/auth-device.dto'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; | 
					 | 
					 | 
					import { ConfigurationService } from '@ghostfolio/api/services/configuration.service'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { RequestWithUser } from '@ghostfolio/common/types'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { | 
					 | 
					 | 
					import { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  Inject, | 
					 | 
					 | 
					  Inject, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  Injectable, | 
					 | 
					 | 
					  Injectable, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  InternalServerErrorException | 
					 | 
					 | 
					  InternalServerErrorException | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} from '@nestjs/common'; | 
					 | 
					 | 
					} from '@nestjs/common'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import { UserService } from '../user/user.service'; | 
					 | 
					 | 
					import { REQUEST } from '@nestjs/core'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { JwtService } from '@nestjs/jwt'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { | 
					 | 
					 | 
					import { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  generateAssertionOptions, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  GenerateAssertionOptionsOpts, | 
					 | 
					 | 
					  GenerateAssertionOptionsOpts, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  generateAttestationOptions, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  GenerateAttestationOptionsOpts, | 
					 | 
					 | 
					  GenerateAttestationOptionsOpts, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  VerifiedAssertion, | 
					 | 
					 | 
					  VerifiedAssertion, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  VerifiedAttestation, | 
					 | 
					 | 
					  VerifiedAttestation, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  verifyAssertionResponse, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  VerifyAssertionResponseOpts, | 
					 | 
					 | 
					  VerifyAssertionResponseOpts, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  verifyAttestationResponse, | 
					 | 
					 | 
					  VerifyAttestationResponseOpts, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  VerifyAttestationResponseOpts | 
					 | 
					 | 
					  generateAssertionOptions, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  generateAttestationOptions, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  verifyAssertionResponse, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  verifyAttestationResponse | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} from '@simplewebauthn/server'; | 
					 | 
					 | 
					} from '@simplewebauthn/server'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import { REQUEST } from '@nestjs/core'; | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { UserService } from '../user/user.service'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { | 
					 | 
					 | 
					import { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  AssertionCredentialJSON, | 
					 | 
					 | 
					  AssertionCredentialJSON, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  AttestationCredentialJSON | 
					 | 
					 | 
					  AttestationCredentialJSON | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} from './interfaces/simplewebauthn'; | 
					 | 
					 | 
					} from './interfaces/simplewebauthn'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { AuthDeviceService } from '@ghostfolio/api/app/auth-device/auth-device.service'; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { JwtService } from '@nestjs/jwt'; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { AuthDeviceDto } from '@ghostfolio/api/app/auth-device/auth-device.dto'; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { RequestWithUser } from '@ghostfolio/common/types'; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					@Injectable() | 
					 | 
					 | 
					@Injectable() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					export class WebAuthService { | 
					 | 
					 | 
					export class WebAuthService { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |