Skip to content

Commit f72f0ee

Browse files
kangmingtayhf
andauthored
fix: improve invalid channel error message returned (#1908)
## What kind of change does this PR introduce? * Improve error message around invalid channel error for phone auth. Only twilio and twilio verify support whatsapp as a valid channel. --------- Co-authored-by: Stojan Dimitrovski <[email protected]>
1 parent 586df26 commit f72f0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
UserExistsError error = errors.New("user already exists")
2121
)
2222

23-
const InvalidChannelError = "Invalid channel, supported values are 'sms' or 'whatsapp'"
23+
const InvalidChannelError = "Invalid channel, supported values are 'sms' or 'whatsapp'. 'whatsapp' is only supported if Twilio or Twilio Verify is used as the provider."
2424

2525
var oauthErrorMap = map[int]string{
2626
http.StatusBadRequest: "invalid_request",

0 commit comments

Comments
 (0)