miolo 3.0.0-beta.202 → 3.0.0-beta.203
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/package.json
CHANGED
|
@@ -252,6 +252,10 @@ const init_passport_auth_middleware = (app, options, sessionConfig, cacheConfig)
|
|
|
252
252
|
|
|
253
253
|
const redirectUrl = ctx.query.redirect || "/"
|
|
254
254
|
|
|
255
|
+
ctx.miolo.logger.info(
|
|
256
|
+
`[auth][google] handleGoogleLogin() - authenticating with redirectUrl: ${redirectUrl}`
|
|
257
|
+
)
|
|
258
|
+
|
|
255
259
|
const strategy = passport.authenticate("google", {
|
|
256
260
|
scope: ["profile", "email"],
|
|
257
261
|
state: redirectUrl
|
|
@@ -293,18 +297,23 @@ const init_passport_auth_middleware = (app, options, sessionConfig, cacheConfig)
|
|
|
293
297
|
ctx.session.authenticated = true
|
|
294
298
|
ctx.session.auth_method = "google"
|
|
295
299
|
|
|
296
|
-
ctx.body = {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
300
|
+
// ctx.body = {
|
|
301
|
+
// ok: true,
|
|
302
|
+
// data: {
|
|
303
|
+
// user: user,
|
|
304
|
+
// authenticated: true,
|
|
305
|
+
// config: {
|
|
306
|
+
// auth_method: "google"
|
|
307
|
+
// }
|
|
308
|
+
// }
|
|
309
|
+
// }
|
|
306
310
|
|
|
307
311
|
const redirectUrl = ctx.query.state || google_url_login_redirect || "/"
|
|
312
|
+
|
|
313
|
+
ctx.miolo.logger.info(
|
|
314
|
+
`[auth][google] handleGoogleCallback() - redirecting to: ${redirectUrl}. query.state: ${ctx.query.state}. google_url_login_redirect: ${google_url_login_redirect}`
|
|
315
|
+
)
|
|
316
|
+
|
|
308
317
|
ctx.redirect(redirectUrl)
|
|
309
318
|
}
|
|
310
319
|
})(ctx, next)
|
package/template/package.json
CHANGED
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"intre": "^3.0.0-beta.4",
|
|
46
46
|
"joi": "^18.2.1",
|
|
47
47
|
"lucide-react": "^1.16.0",
|
|
48
|
-
"miolo-cli": "^3.0.0-beta.
|
|
48
|
+
"miolo-cli": "^3.0.0-beta.203",
|
|
49
49
|
"miolo-model": "file:../miolo-model",
|
|
50
|
-
"miolo-react": "^3.0.0-beta.
|
|
50
|
+
"miolo-react": "^3.0.0-beta.203",
|
|
51
51
|
"next-themes": "^0.4.6",
|
|
52
52
|
"radix-ui": "^1.4.3",
|
|
53
53
|
"react": "^19.2.6",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@biomejs/biome": "2.4.15",
|
|
65
|
-
"miolo": "^3.0.0-beta.
|
|
65
|
+
"miolo": "^3.0.0-beta.203",
|
|
66
66
|
"sass-embedded": "^1.99.0"
|
|
67
67
|
},
|
|
68
68
|
"overrides": {
|