Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Api and Google Auth Library which one should I use for GoogleOAuth2

What are the differences between those those two libraries? Which one should I use for authentication?

  • https://github.com/google/google-api-nodejs-client
  • https://github.com/google/google-auth-library-nodejs

for example: I saw that while one include the setCredentials, the other doesn't support it. and have credentials as a property

like image 881
rabashani Avatar asked Jan 09 '18 09:01

rabashani


1 Answers

So, it appears that the first one is indeed in alpha. Also, the second one is official release and maintained by google fellows, and yesterday was released it 1.0.0 version. see it here as well -> https://github.com/google/google-auth-library-nodejs/issues/241

like image 184
rabashani Avatar answered Sep 19 '22 15:09

rabashani