Browse Source

add LoginErrorCode

Yohei-Shiina 3 years ago
parent
commit
8d15996f1a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      packages/app/src/interfaces/errors/login-form-error.ts

+ 5 - 0
packages/app/src/interfaces/errors/login-form-error.ts

@@ -0,0 +1,5 @@
+export const LoginErrorCode = {
+  PROVIDER_DUPLICATED_USERNAME_EXCEPTION: 'ProviderDuplicatedUsernameException',
+} as const;
+
+export type LoginErrorCode = typeof LoginErrorCode[keyof typeof LoginErrorCode];