MCPcopy Create free account
hub / github.com/auth0/auth0-cli / defaultCallbackURLFor

Function defaultCallbackURLFor

internal/cli/quickstarts.go:358–365  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

356}
357
358func 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
367func defaultURL(url string, port int) string {
368 return fmt.Sprintf("%s:%d", url, port)

Callers 2

promptDefaultURLsFunction · 0.85
urlPromptForFunction · 0.85

Calls 1

defaultURLForFunction · 0.85

Tested by

no test coverage detected