summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/components/drive/DriveDirectoryClient.tsx5
1 files 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 @@
3import type React from "react" 3import type React from "react"
4import { useState, useRef } from "react" 4import { useState, useRef } from "react"
5import Link from "next/link" 5import Link from "next/link"
6import { Auth_tinyauth_public_endpoint } from "@/lib/auth"
6import { 7import {
7 ChevronRight, 8 ChevronRight,
8 File, 9 File,
@@ -311,8 +312,8 @@ export function DriveDirectoryClient({ path, files, breadcrumbs, storageData }:
311 } 312 }
312 313
313 const handleLogin = () => { 314 const handleLogin = () => {
314 // Redirect to external auth page (configured via env var) 315 // Redirect to tinyauth Google OAuth endpoint
315 const authUrl = process.env.NEXT_PUBLIC_AUTH_URL || "/auth/login" 316 const authUrl = `${Auth_tinyauth_public_endpoint()}/auth/google`
316 window.location.href = authUrl 317 window.location.href = authUrl
317 } 318 }
318 319