sst 3.0.1-20 → 3.0.1-21
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 +2 -0
- package/package.json +1 -1
package/dist/auth/handler.js
CHANGED
|
@@ -115,6 +115,7 @@ export function AuthHandler(input) {
|
|
|
115
115
|
},
|
|
116
116
|
};
|
|
117
117
|
app.get("/token", async (c) => {
|
|
118
|
+
console.log("token request");
|
|
118
119
|
const form = await c.req.formData();
|
|
119
120
|
if (form.get("grant_type") !== "authorization_code") {
|
|
120
121
|
c.status(400);
|
|
@@ -140,6 +141,7 @@ export function AuthHandler(input) {
|
|
|
140
141
|
});
|
|
141
142
|
app.use("/:provider/authorize", async (c, next) => {
|
|
142
143
|
const provider = c.req.param("provider");
|
|
144
|
+
console.log("authorize request for", provider);
|
|
143
145
|
const response_type = c.req.query("response_type") || getCookie(c, "response_type");
|
|
144
146
|
const redirect_uri = c.req.query("redirect_uri") || getCookie(c, "redirect_uri");
|
|
145
147
|
const state = c.req.query("state") || getCookie(c, "state");
|