3 Commits

Author SHA1 Message Date
Boris Cherepanov bafa3e0ec0 feat: update auth
Publish Metadata Agent Image / build-and-push-image (push) Successful in 1m5s
Publish Node Player Image / build-and-push-image (push) Failing after 17s
Publish Web Player Image / build-and-push-image (push) Successful in 1m19s
2026-04-19 21:50:38 +03:00
Boris Cherepanov df8d8f0d73 Merge branch 'DEV' into feature/node-app
Publish Metadata Agent Image / build-and-push-image (push) Successful in 1m5s
Publish Node Player Image / build-and-push-image (push) Failing after 26s
Publish Web Player Image / build-and-push-image (push) Successful in 1m43s
2026-04-19 21:11:31 +03:00
Boris Cherepanov 74d7b10386 feat: remove useless host
Publish Metadata Agent Image / build-and-push-image (push) Successful in 2m41s
Publish Web Player Image / build-and-push-image (push) Successful in 1m7s
2026-04-19 21:01:30 +03:00
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -17,7 +17,9 @@ function App() {
useEffect(() => {
const loadMe = async () => {
try {
const response = await fetch('/auth/me', { credentials: 'include' })
const response = await fetch(`/auth/me`, {
credentials: 'include',
})
if (response.status === 401) {
setUser(null)
@@ -55,6 +57,8 @@ function App() {
void loadMe()
}, [])
const loginUrl = `/api/login`
const logoutUrl = `/api/logout`
// Authenticated — render player immediately
if (!loading && user) {
return <FurumiPlayer user={user} />
+3
View File
@@ -26,6 +26,9 @@ const oidcConfig = {
response_type: 'code',
scope: process.env.OIDC_SCOPE ?? 'openid profile email offline_access',
},
routes: {
callback: process.env.OIDC_REDIRECT_URL
}
};
if (!disableAuth && (!oidcConfig.clientID || !oidcConfig.issuerBaseURL || !oidcConfig.clientSecret)) {