MCPcopy Create free account
hub / github.com/netlify/gotrue / getExternalRedirectURL

Method getExternalRedirectURL

api/external.go:359–369  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

357}
358
359func (a *API) getExternalRedirectURL(r *http.Request) string {
360 ctx := r.Context()
361 config := a.getConfig(ctx)
362 if config.External.RedirectURL != "" {
363 return config.External.RedirectURL
364 }
365 if er := getExternalReferrer(ctx); er != "" {
366 return er
367 }
368 return config.SiteURL
369}

Callers 2

redirectErrorsMethod · 0.95

Calls 2

getConfigMethod · 0.95
getExternalReferrerFunction · 0.85

Tested by

no test coverage detected