All files / apps / web/src / features / auth constants.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11      6x     6x        
// The company domains that may sign in (design 4.1, seeded in apps/api/seeds/main.sql). The API
// checks the real list; this copy only tells people which account to pick.
// shortcut: hard-coded until the Owner can edit the list (AUTH-2, S4) and /api/config hands it out.
export const ALLOWED_DOMAINS = ['asnet.com.vn', 'agilityio.com'] as const
 
/** Codes the sign-in screen sets itself, beside the API's error codes. */
export const SIGN_IN_ERROR_CODE = {
  cancelled: 'sign_in_cancelled',
  failed: 'sign_in_failed',
} as const