Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter auth is deprecated. Use username / password instead. #9

Closed
tehshane opened this issue Feb 23, 2021 · 1 comment
Closed

Parameter auth is deprecated. Use username / password instead. #9

tehshane opened this issue Feb 23, 2021 · 1 comment

Comments

@tehshane
Copy link
Contributor

Since the update to the latest version of got in 6c84412, I'm getting this error when I try to connect to the Toggl API.

(node:2384) UnhandledPromiseRejectionWarning: TypeError: Parameter `auth` is deprecated. Use `username` / `password` instead.
    at normalizeArguments (/home/REDACTED/node_modules/got/dist/source/core/index.js:430:19)
    at got (/home/REDACTED/node_modules/got/dist/source/create.js:112:39)
    at TogglClient.request (/home/REDACTED/node_modules/toggl-client/lib/client.js:66:30)
    at TogglClient.get (/home/REDACTED/node_modules/toggl-client/lib/client.js:49:23)
    at TimeEntries.list (/home/REDACTED/node_modules/toggl-client/lib/time-entries.js:21:30)

As the error suggests, looks like they deprecated the auth method in sindresorhus/got#1051

I'll try and get a PR ready for it, but just a heads up.

Thanks! 😀

@saintedlama
Copy link
Owner

Fixed in 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants