Closed hansemannn closed 4 months ago
The docs are referencing GoogleAuth
, which generates a JWT
:
Sample usage:
import {GoogleAuth} from 'google-auth-library';
const key = '';
const auth = new GoogleAuth();
const client = auth.fromAPIKey(key);
According to the docs, the
fromAPIKey
function should return an instance of the class again, but returnsvoid
in the actual code.To properly use it in chaining scenarios, e.g.
const client = new JWT().fromAPIKey('<api-key>')
, this issue should be addressed.