fix(node-player): use expires_in instead of expires_at on AccessToken type
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@ app.get('/auth/token', (req, res) => {
|
||||
}
|
||||
|
||||
const accessToken = req.oidc.accessToken?.access_token;
|
||||
const expiresAt = req.oidc.accessToken?.expires_at;
|
||||
const expiresAt = req.oidc.accessToken?.expires_in;
|
||||
if (!accessToken) {
|
||||
res.status(500).json({ error: 'no access token in session' });
|
||||
return;
|
||||
@@ -95,7 +95,7 @@ app.get('/auth/token', (req, res) => {
|
||||
res.json({
|
||||
access_token: accessToken,
|
||||
token_type: 'Bearer',
|
||||
expires_at: expiresAt,
|
||||
expires_in: expiresAt,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user