Restructure progress
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
import type { RequestHandler } from './$types';
|
||||
import { authServer } from '$lib/google/index.js';
|
||||
import { createAuthUrl } from '$lib/google/auth/server.js';
|
||||
|
||||
export const GET: RequestHandler = () => {
|
||||
const authUrl = authServer.createAuthUrl();
|
||||
const authUrl = createAuthUrl();
|
||||
throw redirect(302, authUrl);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user