diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/components/drive/DriveDirectoryClient.tsx | 5 |
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 @@ | |||
| 3 | import type React from "react" | 3 | import type React from "react" |
| 4 | import { useState, useRef } from "react" | 4 | import { useState, useRef } from "react" |
| 5 | import Link from "next/link" | 5 | import Link from "next/link" |
| 6 | import { Auth_tinyauth_public_endpoint } from "@/lib/auth" | ||
| 6 | import { | 7 | import { |
| 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 | ||
