Reason:
tokenDir in the original line is equal to \Users\username\.credentials\
tokenDir in the new line is equal to C:\Users\username\.credentials\ , which is the right for Windows.
Environment
pwmetrics version: 4.2.2
Chrome version: Version 78.0.3904.97 (Official Build) (64-bit)
Config / CLI options
pwmetrics --config=pwmetrics-config.js
Errors
Error while trying to retrieve access token, ENOENT: no such file or directory, mkdir '\Users\my.credentials\'
Error while trying to retrieve access token, invalid_grant at GoogleOauth.getNewToken
Solution
After digging out in google-oauth.js, change the line as below:
Reason: tokenDir in the original line is equal to \Users\username\.credentials\ tokenDir in the new line is equal to C:\Users\username\.credentials\ , which is the right for Windows.
Environment