2 Commits

Author SHA1 Message Date
Ultradesu b1f75b3ee2 fix(node-player): use Express 5 catch-all route syntax
Publish Metadata Agent Image / build-and-push-image (push) Has been cancelled
Publish Web Player Image / build-and-push-image (push) Has been cancelled
Publish Node Player Image / build-and-push-image (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 15:20:02 +01:00
Ultradesu f3392eff9f fix(node-player): use expires_in instead of expires_at on AccessToken type
Publish Web Player Image / build-and-push-image (push) Waiting to run
Publish Metadata Agent Image / build-and-push-image (push) Successful in 4m18s
Publish Node Player Image / build-and-push-image (push) Successful in 1m20s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 15:01:30 +01:00
+3 -3
View File
@@ -86,7 +86,7 @@ app.get('/auth/token', (req, res) => {
} }
const accessToken = req.oidc.accessToken?.access_token; const accessToken = req.oidc.accessToken?.access_token;
const expiresAt = req.oidc.accessToken?.expires_at; const expiresAt = req.oidc.accessToken?.expires_in;
if (!accessToken) { if (!accessToken) {
res.status(500).json({ error: 'no access token in session' }); res.status(500).json({ error: 'no access token in session' });
return; return;
@@ -95,7 +95,7 @@ app.get('/auth/token', (req, res) => {
res.json({ res.json({
access_token: accessToken, access_token: accessToken,
token_type: 'Bearer', token_type: 'Bearer',
expires_at: expiresAt, expires_in: expiresAt,
}); });
}); });
@@ -124,7 +124,7 @@ app.get('/auth/logout', (req, res) => {
// Production: serve Vite-built client as static files // Production: serve Vite-built client as static files
const clientDist = path.resolve(import.meta.dirname, '../../client/dist'); const clientDist = path.resolve(import.meta.dirname, '../../client/dist');
app.use(express.static(clientDist)); app.use(express.static(clientDist));
app.get('*', (_req, res) => { app.get('/{*path}', (_req, res) => {
res.sendFile(path.join(clientDist, 'index.html')); res.sendFile(path.join(clientDist, 'index.html'));
}); });