Skip to main content

Function: isAllowedAdminEmail()

isAllowedAdminEmail(email): boolean

Defined in: src/server/auth/domain.ts:9

Admin SSO is restricted to the agency's Google Workspace domain. The Google hd hint on the OAuth request is advisory only; this is the authoritative server-side check, run in the OAuth callback before a profile is created. Any non-allowed email is signed out immediately.

Parameters

email

string

Returns

boolean