Hi, I have an Electron + Vue project (no TypeScript), and when I trying to use your library, I'm getting the next error when I trying to openAuthWindowAndGetTokens:
ReferenceError: __awaiter is not defined
at ElectronGoogleOAuth2.openAuthPageAndGetAuthorizationCode (index.js?0322:85)
at ElectronGoogleOAuth2.openAuthWindowAndGetAuthorizationCode (index.js?0322:82)
at ElectronGoogleOAuth2.getAuthorizationCode (index.js?0322:74)
at ElectronGoogleOAuth2.openAuthWindowAndGetTokens (index.js?0322:122)
at _callee4$ (index.js?f1e9:22)
at tryCatch (runtime.js?96cf:62)
at Generator.invoke [as _invoke] (runtime.js?96cf:296)
at Generator.prototype.(:8081/anonymous function) [as next] (webpack-internal:///./node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
at _next (asyncToGenerator.js?1da1:25)
Hi, I have an Electron + Vue project (no TypeScript), and when I trying to use your library, I'm getting the next error when I trying to
openAuthWindowAndGetTokens
:My code:
So I copied your code and removed all TypeScript references, and it works. You can use this commit from my PR to reproduce the bug, just install your package with
yarn
and change the import: https://github.com/baruchiro/israeli-bank-scrapers-desktop/blob/81792211d4dd8650f4a85d3aa37b39fdb636380a/src/modules/googleOauth/index.js#L1