Skip to content

Commit

Permalink
fix: improve invalid channel error message returned
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Jan 10, 2025
1 parent 28b715b commit 28d5cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
UserExistsError error = errors.New("user already exists")
)

const InvalidChannelError = "Invalid channel, supported values are 'sms' or 'whatsapp'"
const InvalidChannelError = "Invalid channel, supported values are 'sms' or 'whatsapp'. 'whatsapp' is only supported if twilio or twilio verify is used as the provider."

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

0 comments on commit 28d5cd1

Please sign in to comment.