(path: string | undefined)
| 6 | // stranger signed in at the IdP" from server-side creation (the seed, admin |
| 7 | // add-user), which never carries either. |
| 8 | export const isOAuthCallback = (path: string | undefined): boolean => |
| 9 | path?.startsWith("/oauth2/callback/") === true || path?.startsWith("/callback/") === true; |
| 10 | |
| 11 | // The domain of a well-formed address, or null — so a malformed email can never |
| 12 | // match an allowlist entry (`emailDomain("@example.com")` is null, not "example.com"). |