Skip to content
Snippets Groups Projects
Commit 4ed76a25 authored by Daniel Kovacs's avatar Daniel Kovacs
Browse files

asd

parent 246fce4e
No related branches found
No related tags found
No related merge requests found
......@@ -72,9 +72,10 @@ app.get('/callback', function (req, res) {
uri= uri + '?access_token=' + access_token
console.log(req.query.state);
if (req.query.state.hasOwnProperty('from')){
uri=uri+`?from=${req.query.state.from}`
uri=uri+`&from=${req.query.state.from}`
}
res.redirect(uri + '&access_token=' + access_token)
console.log(uri);
res.redirect(uri)
})
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment