MCPcopy Create free account
hub / github.com/supabase/auth / ExternalProviderCallback

Method ExternalProviderCallback

internal/api/external.go:131–139  ·  view source on GitHub ↗

ExternalProviderCallback handles the callback endpoint in the external oauth provider flow

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

129
130// ExternalProviderCallback handles the callback endpoint in the external oauth provider flow
131func (a *API) ExternalProviderCallback(w http.ResponseWriter, r *http.Request) error {
132 rurl := a.getExternalRedirectURL(r)
133 u, err := url.Parse(rurl)
134 if err != nil {
135 return err
136 }
137 redirectErrors(a.internalExternalProviderCallback, w, r, u)
138 return nil
139}
140
141func (a *API) handleOAuthCallback(r *http.Request) (*OAuthProviderData, error) {
142 ctx := r.Context()

Callers

nothing calls this directly

Calls 2

redirectErrorsFunction · 0.85

Tested by

no test coverage detected