Live data from Hacker News

Runnable – Edit, run, and share code in your browser

runnable.com

21–30 of 60 posts

Re: Runnable – Edit, run, and share code in your browser

#28
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?

Re: Runnable – Edit, run, and share code in your browser

#29

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?

They are replaced with real values on a proxy server, outside of the node.js process.
Post reply on HN