mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fix for OAuth on older browsers (e.g. Epiphany on Pi)
This commit is contained in:
parent
8a4b0892b1
commit
d54027e324
@ -351,7 +351,7 @@ module.exports = function(RED) {
|
|||||||
} else {
|
} else {
|
||||||
credentials.oauth_token = oauth_token;
|
credentials.oauth_token = oauth_token;
|
||||||
credentials.oauth_token_secret = oauth_token_secret;
|
credentials.oauth_token_secret = oauth_token_secret;
|
||||||
res.redirect('https://twitter.com/oauth/authorize?oauth_token='+oauth_token)
|
res.redirect('https://api.twitter.com/oauth/authorize?oauth_token='+oauth_token)
|
||||||
RED.nodes.addCredentials(req.params.id,credentials);
|
RED.nodes.addCredentials(req.params.id,credentials);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user