From 3d9576e8f7f447f0e9aa2b4e4d3d41c5996fd0ae Mon Sep 17 00:00:00 2001 From: JuLi0n21 Date: Sun, 14 Jan 2024 05:34:58 +0100 Subject: [PATCH] return json --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index d174c49..a804548 100644 --- a/server.js +++ b/server.js @@ -58,7 +58,7 @@ app.get('/refresh', (req, res) => { .then(response => response.json()) .then(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));