12 lines
320 B
TypeScript
12 lines
320 B
TypeScript
import { createAuthorizeRedirect, redirectToLoginWithError } from "@/lib/server/auth/oauth";
|
|
|
|
export const runtime = "nodejs";
|
|
|
|
export async function GET(request: Request) {
|
|
try {
|
|
return await createAuthorizeRedirect(request);
|
|
} catch {
|
|
return redirectToLoginWithError(request, "auth_not_configured");
|
|
}
|
|
}
|