Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 329 Bytes
388ac76 16601c5 388ac76 16601c5 388ac76 16601c5 388ac76 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { env } from "$env/dynamic/private";
import type { LayoutServerLoad } from "./$types.js";
const supportsOAuth = !!env.OAUTH_CLIENT_ID && !!env.OAUTH_CLIENT_SECRET;
export const load: LayoutServerLoad = async ({ locals }) => {
return {
session: supportsOAuth ? locals.getSession() : undefined,
supportsOAuth,
};
};
|