basalt / teams/src / canonicalInviteEmail
Function: canonicalInviteEmail()
> canonicalInviteEmail(email): string
Defined in: teams/src/stores.ts:13
The canonical form of an invitation address: trimmed and lower-cased — the same folding @basaltkit/auth applies to account emails, so "one pending invite per email" and the accept-time binding agree with sign-in. Deliberately NOT Unicode-compatibility (NFKC) folded: that would map distinct mailboxes (e.g. full-width letters) onto one address and let an invite bind to an account it was not sent to. Store implementations comparing emails should compare this form on both sides (legacy rows may hold mixed case).
Parameters
email
string
Returns
string