Using google service account in node.js to generate auth token
Steps to run the generateAuthToken script.
-
Download google service account json file by following this blog: blog_link
-
npm install to install node modules
-
node generateAuthToken.js to generate the authentication token which can be used for google oauth2 sso