diff --git a/index.ts b/index.ts index 26aaf40..040016b 100644 --- a/index.ts +++ b/index.ts @@ -33,11 +33,7 @@ try { }; } -const jwk = JSON.parse( - fs.readFileSync(config.keyfile, { - encoding: "utf-8", - }) -); +const jwk = typeof config.keyfile === "string" ? JSON.parse(config.keyfile) : config.keyfile ; const oauthClient = new google.auth.OAuth2( config["googleClientID"],