summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-13 16:29:57 +0100
committerdiogo464 <[email protected]>2025-08-13 16:29:57 +0100
commitfe27e88eff20b342ba54e8df34ee962d62233552 (patch)
tree922bb67174fd4224cc06a4c0815001cc50a47398 /frontend
parent1a219f85b0718ab82beb167bc147648305e2bd61 (diff)
frontend: fixed login button redirect uri
Diffstat (limited to 'frontend')
-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