A shared normaliser strips non-digits and prepends the country code to a bare 10-digit North American number, so a number typed as (555) 123-4567 matches the same number reported in E.164 form by the identity provider.
Also called: invited by phone number · phone invite stuck pending
- 1normalizePhone() strips non-digits, prepends 1 to a bare 10-digit number, and returns unusual lengths untouched rather than mangling them.
- 2Both the stored invitation and the account's verified phone are normalised before comparison.
The function's own comment describes the bug: 'a raw strip-and-compare never matches and a phone-only invitee gets stuck in pending forever.' For a builder whose crew has phones and no email, that was the default outcome.
- Phone-invited users were never matched to their invitation because of formatting differences.
See it on your own jobs
Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.
or keep browsing features →