mirror of
https://github.com/immich-app/static-pages.git
synced 2026-09-30 13:23:05 +08:00
10 lines
303 B
TypeScript
10 lines
303 B
TypeScript
import { callback } from '$lib/utils/oauth';
|
|
import type { PageLoad } from './$types';
|
|
|
|
export const load = (async ({ fetch, url, params }) => {
|
|
if (params.id === 'callback') {
|
|
const { response, error } = await callback(fetch, url.href);
|
|
return { response, error };
|
|
}
|
|
}) satisfies PageLoad;
|