javascript - Node JS for Google Mirror API -
i trying implement oauth using node js glass mirror api amd found useful. in "app.js" file, need provide credentials of project created in google developer console.
i have client id, client secret not able define should callback url be? should in callback url script? logically understand there should program accepts token , runs further steps.
but how write one? kindly help. in advance
base on sample code link, callback url be
// running in localhost http://localhost/oauth2callback // or running on server http://yourdomain.com/oauth2callback when google redirect oauth2callback, server code run redirect index page
grabtoken(req.query.code, failure, function () { res.redirect('/'); });
Comments
Post a Comment