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

as

parent c3ce0d9d
Branches
No related tags found
No related merge requests found
......@@ -71,8 +71,8 @@ app.get('/callback', function (req, res) {
let uri = process.env.FRONTEND_URI || 'http://localhost:3000/'
uri= uri + '?access_token=' + access_token
console.log(req.query.state);
if (typeof req.query.state!=="undefined"){
uri=uri+`&from=${req.query.state}`
if (typeof req.query.state.from!=="undefined"){
uri=uri+`&from=${req.query.state.from}`
}
res.redirect(uri + '?access_token=' + access_token)
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment