From fea393077a16af82535933f446fe7a83926415df Mon Sep 17 00:00:00 2001 From: JuLi0n21 Date: Wed, 10 Jan 2024 03:35:40 +0100 Subject: [PATCH] use api --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 77f7ea7..e6dd0f7 100644 --- a/server.js +++ b/server.js @@ -60,7 +60,7 @@ app.get('/callback', async (req, res) => { .then(response => response.json()) .then(data => { console.log(data) - res.redirect(`http://localhost:${req.query.state}/callback?access_token=${data.access_token}&refresh_token=${data.refresh_token}&expires_in=${data.expires_in}`) + res.redirect(`http://localhost:${req.query.state}/api/callback?access_token=${data.access_token}&refresh_token=${data.refresh_token}&expires_in=${data.expires_in}`) //res.json(data); }) .catch(error => console.error('Error:', error));