Merge pull request 'fix(node-player): use expires_in instead of expires_at on AccessToken type' (#9) from feature/JWT-OIDC-SSO into DEV
Reviewed-on: #9
This commit was merged in pull request #9.
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user