question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setCredentials is not a function in v23

See original GitHub issue

Hi,

Some code between version 22 and version 23 has deleted the setCredentials function.

I was getting setCredentials is not a function while trying to use this library to authenticate/access apis. This could be downstream, idk.

The readme does contain references to this function.

screen shot 2017-11-22 at 1 32 53 pm

screen shot 2017-11-22 at 1 32 58 pm

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
JustinBeckwithcommented, Nov 30, 2017

@MySidesTheyAreGone apologies for the break here. We have a fix coming. In the interim - you can work around this by just assigning a credentials object like this:

oAuth2Client.credentials = credentials

It’s the same thing, just doing assignment instead of using the setCredentials method.

6reactions
ghostcommented, Nov 30, 2017

Dear Google,

I am completely $#@%!&.

Please fix this yesterday.

Regards, My Sides

Read more comments on GitHub >

github_iconTop Results From Across the Web

setCredentials is not a function in googleapis.auth.OAuth2
Try to use: oauth2Client.credentials = tokens;. in place of oauth2Client.setCredentials(tokens);.
Read more >
Securing Service Credentials with Runtime CredHub
PAS generates the internal tile credentials for a service when the service is first installed and stores them in BOSH CredHub, not runtime ......
Read more >
OIPF - Volume 5, Declarative Application Environment, V2.3
If domain is null all set credentials are cleared. Returns true if the digest credentials for the given protocol and domain were cleared...
Read more >
vivo V23 5G full review - YouTube
Check out our video review to learn ALL YOU NEED TO KNOW about the vivo V23's top features, build and screen quality, battery...
Read more >
vivo V23 Pro full review - YouTube
The vivo V23 Pro is a pretty unique device. The UV-reactive back panel is an instant conversation starter. And this phone truly shines...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found