import './config-BHx687w1.js'; import { r as redirect } from './index-Ddp2AB5f.js'; import './shared-server-i79vVjEm.js'; const load = async ({ request, cookies }) => { let url = new URL(request.url); if (url.searchParams.has("token")) { try { let token = url.searchParams.get("token"); if (!token) { return { success: false, message: "missing token" }; } cookies.set("token", token, { path: "/", httpOnly: true, secure: false }); } catch (e) { console.log(e); } redirect(302, "/articles"); } return { success: false, message: "missing token" }; }; var _page_server = /*#__PURE__*/Object.freeze({ __proto__: null, load: load }); const index = 8; let component_cache; const component = async () => component_cache ??= (await import('./_page.svelte-B4swQ58v.js')).default; const server_id = "src/routes/(auth)/auth/+page.server.js"; const imports = ["_app/immutable/nodes/8.BafLGlYw.js","_app/immutable/chunks/scheduler.TiWp2jL2.js","_app/immutable/chunks/index.BGG1x4jY.js","_app/immutable/chunks/config.D7OJDjr-.js","_app/immutable/chunks/index.ClIX1ZeE.js","_app/immutable/chunks/index.aejygcvy.js","_app/immutable/chunks/mode-watcher.DzTSbG1i.js","_app/immutable/chunks/spread.CgU5AtxT.js","_app/immutable/chunks/each.BM-upbTq.js"]; const stylesheets = ["_app/immutable/assets/app.cr9hm5UU.css"]; const fonts = []; export { component, fonts, imports, index, _page_server as server, server_id, stylesheets }; //# sourceMappingURL=8-K3YHiWBI.js.map