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.
- package/dist/auth/handler.js +5 -1
- package/package.json +1 -1
package/dist/auth/handler.js
CHANGED
|
@@ -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.
|
|
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,
|