mirror of
				https://github.com/teamhanko/hanko.git
				synced 2025-11-01 00:58:16 +08:00 
			
		
		
		
	refactor: move frontend projects to frontend folder
This commit is contained in:
		
							
								
								
									
										83
									
								
								frontend/frontend-sdk/src/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								frontend/frontend-sdk/src/index.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,83 @@ | ||||
| // SDK | ||||
|  | ||||
| import { Hanko } from "./Hanko"; | ||||
|  | ||||
| export { Hanko }; | ||||
|  | ||||
| // Clients | ||||
|  | ||||
| import { ConfigClient } from "./lib/client/ConfigClient"; | ||||
| import { PasscodeClient } from "./lib/client/PasscodeClient"; | ||||
| import { PasswordClient } from "./lib/client/PasswordClient"; | ||||
| import { UserClient } from "./lib/client/UserClient"; | ||||
| import { WebauthnClient } from "./lib/client/WebauthnClient"; | ||||
|  | ||||
| export { | ||||
|   ConfigClient, | ||||
|   UserClient, | ||||
|   WebauthnClient, | ||||
|   PasswordClient, | ||||
|   PasscodeClient, | ||||
| }; | ||||
|  | ||||
| // Utils | ||||
|  | ||||
| import { WebauthnSupport } from "./lib/WebauthnSupport"; | ||||
|  | ||||
| export { WebauthnSupport }; | ||||
|  | ||||
| // DTO | ||||
|  | ||||
| import { | ||||
|   PasswordConfig, | ||||
|   Config, | ||||
|   WebauthnFinalized, | ||||
|   Credential, | ||||
|   UserInfo, | ||||
|   User, | ||||
|   Passcode, | ||||
| } from "./lib/Dto"; | ||||
|  | ||||
| export type { | ||||
|   PasswordConfig, | ||||
|   Config, | ||||
|   WebauthnFinalized, | ||||
|   Credential, | ||||
|   UserInfo, | ||||
|   User, | ||||
|   Passcode, | ||||
| }; | ||||
|  | ||||
| // Errors | ||||
|  | ||||
| import { | ||||
|   HankoError, | ||||
|   TechnicalError, | ||||
|   ConflictError, | ||||
|   RequestTimeoutError, | ||||
|   WebauthnRequestCancelledError, | ||||
|   InvalidPasswordError, | ||||
|   InvalidPasscodeError, | ||||
|   InvalidWebauthnCredentialError, | ||||
|   PasscodeExpiredError, | ||||
|   MaxNumOfPasscodeAttemptsReachedError, | ||||
|   NotFoundError, | ||||
|   TooManyRequestsError, | ||||
|   UnauthorizedError, | ||||
| } from "./lib/Errors"; | ||||
|  | ||||
| export { | ||||
|   HankoError, | ||||
|   TechnicalError, | ||||
|   ConflictError, | ||||
|   RequestTimeoutError, | ||||
|   WebauthnRequestCancelledError, | ||||
|   InvalidPasswordError, | ||||
|   InvalidPasscodeError, | ||||
|   InvalidWebauthnCredentialError, | ||||
|   PasscodeExpiredError, | ||||
|   MaxNumOfPasscodeAttemptsReachedError, | ||||
|   NotFoundError, | ||||
|   TooManyRequestsError, | ||||
|   UnauthorizedError, | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user
	 Felix Dubrownik
					Felix Dubrownik