sst 3.0.1-31 → 3.0.1-32

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.
@@ -102,7 +102,7 @@ export function AuthHandler(input) {
102
102
  return ctx.text(`Unsupported response_type: ${response_type}`);
103
103
  },
104
104
  }, {
105
- type: ctx.req.param("provider"),
105
+ type: ctx.get("provider"),
106
106
  ...properties,
107
107
  }, ctx.req.raw);
108
108
  },
@@ -173,6 +173,10 @@ export function AuthHandler(input) {
173
173
  });
174
174
  for (const [name, value] of Object.entries(input.providers)) {
175
175
  const route = new Hono();
176
+ route.use(async (c, next) => {
177
+ c.set("provider", name);
178
+ await next();
179
+ });
176
180
  value(route, {
177
181
  name,
178
182
  ...options,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.0.1-31",
6
+ "version": "3.0.1-32",
7
7
  "main": "./dist/index.js",
8
8
  "exports": {
9
9
  ".": "./dist/index.js",