DEV Community

Discussion on: Authentication with Google in NodeJS

Collapse
 
yeoupooh profile image
Thomas Jinwoo Min

Thank you for the helpful article.

I found some trivial errors in getting value from OAuth2Data with latest google_key.json.
Below is the fix.

const CLIENT_ID = OAuth2Data.web.client_id;
const CLIENT_SECRET = OAuth2Data.web.client_secret;
const REDIRECT_URL = OAuth2Data.web.redirect_uris;

Collapse
 
ananayarora profile image
Ananay Arora

Thomas, thanks for the fix! This fix is indeed correct and is necessary for the app to function.

Collapse
 
uddeshjain profile image
Uddesh

I glad it helped you. An error could be due to the change in the structure of credentials but I'll take look on it.