First stage of the new flow

This commit is contained in:
Roman Krček
2025-07-02 21:50:45 +02:00
parent 5fd647d894
commit 822f1a7342
15 changed files with 1317 additions and 140 deletions

View File

@@ -0,0 +1,8 @@
import { redirect } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
import { createAuthUrl } from '$lib/google-server.js';
export const GET: RequestHandler = () => {
const authUrl = createAuthUrl();
throw redirect(302, authUrl);
};