(s string)
| 356 | } |
| 357 | |
| 358 | func defaultCallbackURLFor(s string) string { |
| 359 | switch strings.ToLower(s) { |
| 360 | case "next.js": // See https://github.com/auth0/auth0-cli/issues/200 |
| 361 | return fmt.Sprintf("%s/api/auth/callback", defaultURLFor(s)) |
| 362 | default: |
| 363 | return defaultURLFor(s) |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | func defaultURL(url string, port int) string { |
| 368 | return fmt.Sprintf("%s:%d", url, port) |
no test coverage detected