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

Possible fix

parent ef68164a
Branches
Tags
No related merge requests found
......@@ -71,7 +71,7 @@ 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.from!=="undefined"){
if (req.query.state.hasOwnProperty('from')){
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 to comment