Closed CrypticWoodWhite closed 5 years ago
You're not passing a client
property here.
const options = {
googleClient,
params,
};
should be
const options = {
client: googleClient,
params,
};
I'm still getting the same error
Well, you ought to wait for async operations, such as the discovery, to finish first your variable is undefined because you call for new strategy instance before the client is assigned to it.
Ah I see, I put all the code inside the .then(.....) which then worked. I had thought that just assigning googleClient in there was enough. Thanks!
I'm getting a client typeError.
The relevant code is:
googleClient is returned as undefined. I'm expecting to get a Client instance. The error is: