feat(auth): Update ActionCodeSettings to support LinkDomain and deprecate DynamicLinkDomain#703
Conversation
- Release 4.12.0
This reverts commit 32af2b8.
Xiaoshouzi-gh
left a comment
There was a problem hiding this comment.
Thanks for putting this together!
|
Thanks for the contribution! The base branch for PRs should be pointed to |
|
I guess you'll want to close either this PR or #682. I had originally created a PR targeting dev, but was recently asked to make one targeting master |
jonathanedey
left a comment
There was a problem hiding this comment.
Hi @graeme-verticalscope, thanks for getting started on this.
Can you add some error logic similar for what we have for dynamicLinkDomain:
firebase-admin-go/auth/user_mgt.go
Line 524 in d515faf
For invalidHostingLinkDomain the backend error should be "INVALID_HOSTING_LINK_DOMAIN"
firebase-admin-go/auth/user_mgt.go
Lines 554 to 557 in d515faf
firebase-admin-go/auth/user_mgt.go
Lines 1445 to 1449 in d515faf
Also ensure these are included in our tests:
firebase-admin-go/auth/user_mgt_test.go
Lines 2149 to 2153 in d515faf
firebase-admin-go/auth/email_action_links_test.go
Lines 293 to 296 in d515faf
Thanks!
|
@jonathanedey, thanks I added the error code you mentioned! You may want to check that the code and message are correct here: I used the same |
auth/user_mgt.go
Outdated
| }, | ||
| "INVALID_HOSTING_LINK_DOMAIN": { | ||
| code: internal.InvalidArgument, | ||
| message: "the provided hosting link domain is not configured or authorized for the current project", |
There was a problem hiding this comment.
Good call out, lets go with the following to match the node sdk:
the provided hosting link domain is not configured in Firebase Hosting or is not owned by the current project
There was a problem hiding this comment.
Great! I updated the error message.
|
Let me know if there's anything else I need to do, otherwise I'm assuming this can be approved and merged by a repository maintainer :) |
ActionCodeSettings to support LinkDomain and deprecate DynamicLinkDomain
ActionCodeSettings to support LinkDomain and deprecate DynamicLinkDomainActionCodeSettings to support LinkDomain and deprecate DynamicLinkDomain
|
That's everything, thanks again @graeme-verticalscope for putting this together! |
Discussion
Add the
LinkDomainfield to theActionCodeSettingsstruct, this new field enables migrating off of firebase dynamic links, which is deprecated and will be unsupported soon.See #681, I was asked to create a second PR targeting master branch. Original PR is #682