Hey everyone, been banging my head against this for a while and can't find
anyone with the same issue online.
**The problem:** Every time I try to set a custom action URL in
Authentication > Templates, I get this error:
EMAIL_TEMPLATE_UPDATE_NOT_ALLOWED (400 INVALID_ARGUMENT)
Tried it from the Firebase Console UI and also via direct API call
(PATCH to identitytoolkit.googleapis.com/v2/projects/{id}/config) —
same error both ways.
**What I already ruled out:**
- Domain IS in the authorized domains list
- Custom SMTP is disabled
- No multi-tenancy
- Custom sender domain () works fine
- Not a permissions issue — the API returns 400 not 403
- Tried multiple URL formats and subdomains
**Context:**
- Project uses Firebase Auth **with Identity Platform** enabled
- Emails send correctly from the custom domain
- But links in emails still go to instead of my domain
Has anyone run into this? Is it a known bug with Identity Platform projects?