From fe27e88eff20b342ba54e8df34ee962d62233552 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Wed, 13 Aug 2025 16:29:57 +0100 Subject: frontend: fixed login button redirect uri --- frontend/components/drive/DriveDirectoryClient.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/components/drive/DriveDirectoryClient.tsx b/frontend/components/drive/DriveDirectoryClient.tsx index 2a213f9..d64fb5d 100644 --- a/frontend/components/drive/DriveDirectoryClient.tsx +++ b/frontend/components/drive/DriveDirectoryClient.tsx @@ -3,6 +3,7 @@ import type React from "react" import { useState, useRef } from "react" import Link from "next/link" +import { Auth_tinyauth_public_endpoint } from "@/lib/auth" import { ChevronRight, File, @@ -311,8 +312,8 @@ export function DriveDirectoryClient({ path, files, breadcrumbs, storageData }: } const handleLogin = () => { - // Redirect to external auth page (configured via env var) - const authUrl = process.env.NEXT_PUBLIC_AUTH_URL || "/auth/login" + // Redirect to tinyauth Google OAuth endpoint + const authUrl = `${Auth_tinyauth_public_endpoint()}/auth/google` window.location.href = authUrl } -- cgit