Skip to content

Commit c0bc26f

Browse files
Better error message for INVALID_HOSTING_LINK_DOMAIN
1 parent e384662 commit c0bc26f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

auth/user_mgt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ var serverError = map[string]*authError{
14551455
},
14561456
"INVALID_HOSTING_LINK_DOMAIN": {
14571457
code: internal.InvalidArgument,
1458-
message: "the provided hosting link domain is not configured or authorized for the current project",
1458+
message: "the provided hosting link domain is not configured in Firebase Hosting or is not owned by the current project",
14591459
authCode: invalidHostingLinkDomain,
14601460
},
14611461
"PHONE_NUMBER_EXISTS": {

auth/user_mgt_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ func TestHTTPErrorWithCode(t *testing.T) {
21542154
"INVALID_HOSTING_LINK_DOMAIN": {
21552155
IsInvalidHostingLinkDomain,
21562156
errorutils.IsInvalidArgument,
2157-
"the provided hosting link domain is not configured or authorized for the current project",
2157+
"the provided hosting link domain is not configured in Firebase Hosting or is not owned by the current project",
21582158
},
21592159
"PHONE_NUMBER_EXISTS": {
21602160
IsPhoneNumberAlreadyExists,

0 commit comments

Comments
 (0)