mirror of
https://github.com/JuLi0n21/osu-progress-oauth-helper.git
synced 2026-04-19 16:00:06 +00:00
redirect back to localserver
This commit is contained in:
@@ -60,7 +60,8 @@ app.get('/callback', async (req, res) => {
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
console.log(data)
|
||||
res.json(data);
|
||||
res.redirect(`https://localhost:${req.query.state}/callback?access_token=data${data.access_token}`)
|
||||
//res.json(data);
|
||||
})
|
||||
.catch(error => console.error('Error:', error));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user