diff --git a/packages/worker/src/api/controllers/global/auth.js b/packages/worker/src/api/controllers/global/auth.js index 5f7e656f7d..592787c5ea 100644 --- a/packages/worker/src/api/controllers/global/auth.js +++ b/packages/worker/src/api/controllers/global/auth.js @@ -100,7 +100,7 @@ exports.setInitInfo = ctx => { } exports.getInitInfo = ctx => { - ctx.body = getCookie(ctx, Cookies.Init) + ctx.body = getCookie(ctx, Cookies.Init) || {} } /**