Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

✨(frontend) support 'silent' and 'returnTo' params in authUrl

lebaudantoine2a8027deb071
diff --git a/src/frontend/src/features/auth/utils/authUrl.ts b/src/frontend/src/features/auth/utils/authUrl.ts
index 111d1399..be5f4cd6 100644
--- a/src/frontend/src/features/auth/utils/authUrl.ts
+++ b/src/frontend/src/features/auth/utils/authUrl.ts
@@ -1,5 +1,5 @@
import { apiUrl } from '@/api/apiUrl'
-export const authUrl = () => {
- return apiUrl('/authenticate')
+export const authUrl = (silent = false, returnTo = window.location.href) => {
+ return apiUrl(`/authenticate?silent=${encodeURIComponent(silent)}&returnTo=${encodeURIComponent(returnTo)}`)
}