class OAuthGroup extends HttpApiGroup.make("oauth")
.add(
HttpApiEndpoint.get("oauth", "/oauth/callback")
.addSuccess(S.Void, { status: 302 }) // <-- how can I add a Location response header like: headers: { Location: "https://www.example.com" }
.setUrlParams(
S.Struct({ code: S.NonEmptyString, expires_in: S.NumberFromString, state: S.NonEmptyString }),
),
)
class OAuthGroup extends HttpApiGroup.make("oauth")
.add(
HttpApiEndpoint.get("oauth", "/oauth/callback")
.addSuccess(S.Void, { status: 302 }) // <-- how can I add a Location response header like: headers: { Location: "https://www.example.com" }
.setUrlParams(
S.Struct({ code: S.NonEmptyString, expires_in: S.NumberFromString, state: S.NonEmptyString }),
),
)