sst 3.0.29 → 3.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ export const OauthAdapter =
10
10
  function getClient(c) {
11
11
  const callback = new URL(c.req.url);
12
12
  callback.pathname = callback.pathname.replace(/authorize\/.*$/, "callback");
13
+ callback.search = "";
13
14
  callback.host = c.req.header("x-forwarded-host") || callback.host;
14
15
  return [
15
16
  callback,
@@ -5,6 +5,7 @@ export const OidcAdapter = /* @__PURE__ */ (config) => {
5
5
  routes.get("/authorize", async (c) => {
6
6
  const callback = new URL(c.req.url);
7
7
  callback.pathname = callback.pathname.replace(/authorize\/.*$/, "callback");
8
+ callback.search = "";
8
9
  callback.host = c.req.header("x-forwarded-host") || callback.host;
9
10
  const client = new config.issuer.Client({
10
11
  client_id: config.clientID,
@@ -4,6 +4,6 @@ import { AuthHandler } from "../auth/handler.js";
4
4
  import { SessionBuilder, createSessionBuilder } from "../auth/session.js";
5
5
  export declare namespace auth {
6
6
  type Issuer = import("openid-client").Issuer;
7
- function authorizer<Providers extends Record<string, Adapter<any>>, Sessions extends SessionBuilder, Result>(...args: Parameters<typeof AuthHandler<Providers, Sessions, Result>>): Handler<any, any>;
7
+ function authorizer<Providers extends Record<string, Adapter<any>>, Sessions extends SessionBuilder>(...args: Parameters<typeof AuthHandler<Providers, Sessions>>): Handler<any, any>;
8
8
  const sessions: typeof createSessionBuilder;
9
9
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.0.29",
6
+ "version": "3.0.31",
7
7
  "main": "./dist/index.js",
8
8
  "exports": {
9
9
  ".": "./dist/index.js",