return json

This commit is contained in:
2024-01-14 05:34:58 +01:00
parent d516a92c36
commit 3d9576e8f7

View File

@@ -58,7 +58,7 @@ app.get('/refresh', (req, res) => {
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
console.log(data) console.log(data)
res.redirect(`http://localhost:${callbackport}/${process.env.CALLBACK_URL}?access_token=${data.access_token}&refresh_token=${data.refresh_token}&expires_in=${data.expires_in}`); res.json(data);
}) })
.catch(error => res.json(error)); .catch(error => res.json(error));