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-BXORLsR4.js')).default; const server_id = "src/routes/(auth)/auth/+page.server.js"; const imports = ["_app/immutable/nodes/8.6xPkEHEs.js","_app/immutable/chunks/scheduler.BsMbz5U8.js","_app/immutable/chunks/index.rkWRBFIu.js","_app/immutable/chunks/config.CaMjilIn.js","_app/immutable/chunks/index.BBc34iid.js","_app/immutable/chunks/index.DwF-TCr7.js","_app/immutable/chunks/mode-watcher.CWo60nVQ.js","_app/immutable/chunks/spread.CgU5AtxT.js","_app/immutable/chunks/each.jOEBnCSj.js"]; const stylesheets = ["_app/immutable/assets/app.tAIPFBPz.css"]; const fonts = []; export { component, fonts, imports, index, _page_server as server, server_id, stylesheets }; //# sourceMappingURL=8-bke9-C2f.js.map