-
Notifications
You must be signed in to change notification settings - Fork 271
feat(auth): Update ActionCodeSettings to support LinkDomain and deprecate DynamicLinkDomain
#703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 31 commits
54b8114
cef91ac
77177c7
a957589
eb0d2a0
05378ef
4121c50
928b104
02cde4f
6b40682
e60757f
bb055ed
23a1f17
1d24577
61c6c04
32af2b8
02300a8
74c9bd5
37c7936
b04387e
87b867c
6a28190
c3be6f2
afeaa15
570427a
fe866a0
db240e4
5236150
0b7fc2c
a7de246
e384662
c0bc26f
cf4bee1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -522,6 +522,7 @@ const ( | |
| emailAlreadyExists = "EMAIL_ALREADY_EXISTS" | ||
| emailNotFound = "EMAIL_NOT_FOUND" | ||
| invalidDynamicLinkDomain = "INVALID_DYNAMIC_LINK_DOMAIN" | ||
| invalidHostingLinkDomain = "INVALID_HOSTING_LINK_DOMAIN" | ||
| phoneNumberAlreadyExists = "PHONE_NUMBER_ALREADY_EXISTS" | ||
| tenantNotFound = "TENANT_NOT_FOUND" | ||
| uidAlreadyExists = "UID_ALREADY_EXISTS" | ||
|
|
@@ -556,6 +557,11 @@ func IsInvalidDynamicLinkDomain(err error) bool { | |
| return hasAuthErrorCode(err, invalidDynamicLinkDomain) | ||
| } | ||
|
|
||
| // IsInvalidHostingLinkDomain checks if the given error was due to an invalid hosting link domain. | ||
| func IsInvalidHostingLinkDomain(err error) bool { | ||
| return hasAuthErrorCode(err, invalidHostingLinkDomain) | ||
| } | ||
|
|
||
| // IsInvalidEmail checks if the given error was due to an invalid email. | ||
| // | ||
| // Deprecated: Always returns false. | ||
|
|
@@ -1447,6 +1453,11 @@ var serverError = map[string]*authError{ | |
| message: "the provided dynamic link domain is not configured or authorized for the current project", | ||
| authCode: invalidDynamicLinkDomain, | ||
| }, | ||
| "INVALID_HOSTING_LINK_DOMAIN": { | ||
| code: internal.InvalidArgument, | ||
| message: "the provided hosting link domain is not configured or authorized for the current project", | ||
|
||
| authCode: invalidHostingLinkDomain, | ||
| }, | ||
| "PHONE_NUMBER_EXISTS": { | ||
| code: internal.AlreadyExists, | ||
| message: "user with the provided phone number already exists", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.