First stage of the new flow
This commit is contained in:
8
src/routes/auth/google/+server.ts
Normal file
8
src/routes/auth/google/+server.ts
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user