miolo 3.0.0-beta.200 → 3.0.0-beta.201

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miolo",
3
- "version": "3.0.0-beta.200",
3
+ "version": "3.0.0-beta.201",
4
4
  "description": "all-in-one koa-based server",
5
5
  "author": "Donato Lorenzo <donato@afialapis.com>",
6
6
  "contributors": [
@@ -284,15 +284,20 @@ const init_passport_auth_middleware = (app, options, sessionConfig, cacheConfig)
284
284
  ctx.session.authenticated = true
285
285
  ctx.session.auth_method = "google"
286
286
 
287
- // ctx.body = {
288
- // ok: true,
289
- // data: {
290
- // user : user,
291
- // authenticated: true
292
- // }
293
- // }
294
-
295
- ctx.redirect(google_url_login_redirect || "/")
287
+ ctx.body = {
288
+ ok: true,
289
+ data: {
290
+ user: user,
291
+ authenticated: true,
292
+ config: {
293
+ auth_method: "google"
294
+ }
295
+ }
296
+ }
297
+
298
+ if (google_url_login_redirect !== undefined) {
299
+ ctx.redirect(google_url_login_redirect)
300
+ }
296
301
  }
297
302
  })(ctx, next)
298
303
  }
@@ -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.200",
48
+ "miolo-cli": "^3.0.0-beta.201",
49
49
  "miolo-model": "file:../miolo-model",
50
- "miolo-react": "^3.0.0-beta.200",
50
+ "miolo-react": "^3.0.0-beta.201",
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.200",
65
+ "miolo": "^3.0.0-beta.201",
66
66
  "sass-embedded": "^1.99.0"
67
67
  },
68
68
  "overrides": {