diff --git a/endpoints/authorize.go b/endpoints/authorize.go index 83e9535..44fbe94 100644 --- a/endpoints/authorize.go +++ b/endpoints/authorize.go @@ -49,6 +49,7 @@ func (c *Client) Authorize(req types.AuthorizeRequest) (*types.AuthorizeResponse q := r.URL.Query() q.Add("scopes", req.Scopes) q.Add("provider", string(req.Provider)) + q.Add("redirect_to", req.RedirectTo) verifier := "" diff --git a/types/api.go b/types/api.go index 73827b7..b6df165 100644 --- a/types/api.go +++ b/types/api.go @@ -285,6 +285,7 @@ const ( type AuthorizeRequest struct { Provider Provider + RedirectTo string FlowType FlowType Scopes string }