Update ActionCodeSettings to support link_domain #884
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Discussion
Firebase Dynamic Links will stop working August 25th 2025.
Migration instructions indicate that to use a custom domain one should update usage of
ActionCodeSettings
to uselinkDomain
, see also in the Firebase Admin docs.We currently depend upon
generate_sign_in_with_email_link
to generate email links,firebase-admin-python
hasn't been updated withlink_domain
and currently only supportsdynamic_link_domain
,firebase-admin-node
has been updated with support forlinkDomain
so I assume this should be officially supported, please let me know if this is not the case.See #883.
This PR updates
ActionCodeSettings
to acceptlink_domain
and updatesencode_action_code_settings
to handlelink_domain
when constructing request payload. I have also added definition for newInvalidHostingLinkDomainError
error.