youtuber-blog-frontend/build/server/chunks/8-BpokIGzh.js

47 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-05-29 19:31:10 +00:00
import './config-BHx687w1.js';
2024-05-29 18:43:41 +00:00
import { r as redirect } from './index-Ddp2AB5f.js';
2024-05-29 19:31:10 +00:00
import './shared-server-i79vVjEm.js';
2024-05-29 18:43:41 +00:00
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);
}
2024-05-30 10:31:54 +00:00
redirect(302, "/articles");
2024-05-29 18:43:41 +00:00
}
return {
success: false,
message: "missing token"
};
};
var _page_server = /*#__PURE__*/Object.freeze({
__proto__: null,
load: load
});
2024-05-29 19:16:25 +00:00
const index = 8;
2024-05-29 18:43:41 +00:00
let component_cache;
2024-05-29 19:31:10 +00:00
const component = async () => component_cache ??= (await import('./_page.svelte-DM4IX63L.js')).default;
2024-05-29 19:16:25 +00:00
const server_id = "src/routes/(auth)/auth/+page.server.js";
2024-06-07 15:34:52 +00:00
const imports = ["_app/immutable/nodes/8.-It9M-Z9.js","_app/immutable/chunks/scheduler.ncJpckHt.js","_app/immutable/chunks/index.DNKwBhZH.js","_app/immutable/chunks/config.pNun6mkT.js","_app/immutable/chunks/index.Bf9t7sah.js","_app/immutable/chunks/index.BHY_2Zs4.js","_app/immutable/chunks/mode-watcher.BmkPhDyx.js","_app/immutable/chunks/spread.CgU5AtxT.js","_app/immutable/chunks/each.C-Vm-bAH.js"];
2024-05-30 10:31:54 +00:00
const stylesheets = ["_app/immutable/assets/app.DkT83p3n.css"];
2024-05-29 18:43:41 +00:00
const fonts = [];
export { component, fonts, imports, index, _page_server as server, server_id, stylesheets };
2024-06-07 15:34:52 +00:00
//# sourceMappingURL=8-BpokIGzh.js.map