3 ms·
In some of the examples that use OAuth, the tokens are things like GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET. var params = { code: code, client_id: 'GO
by tantalor 14y ago
In some of the examples that use OAuth, the tokens are things like GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
var params = {
code: code,
client_id: 'GOOGLE_CLIENT_ID',
client_secret: 'GOOGLE_CLIENT_SECRET',
redirect_uri: callbackURL,
grant_type: 'authorization_code'
};
Are these replaced somehow with real values? Where does that happen?
- enos_feedler 14y agoThey are replaced with real values on a proxy server, outside of the node.js process.
- tantalor 14y agoThought so! As I was walking to work I realized this was the easiest way to protect the integrity of the tokens.