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

Basic example throws Error: authentication failed - client error #31

Open
hansipete opened this issue Jan 25, 2023 · 2 comments
Open

Basic example throws Error: authentication failed - client error #31

hansipete opened this issue Jan 25, 2023 · 2 comments

Comments

@hansipete
Copy link

Hello,

I'm struggling using this API for my project... at the very beginning :)

I initialised a new node project and added this package only. Now when running the basic example it returns Error: authentication failed - client error

I put in the consumer key and secret that was given to me, when I created my app in the Splitwise Dashboard.

Is this still supposed to work?

Thank you and have a great day everyone,
Hans

@keriwarr
Copy link
Owner

keriwarr commented Mar 1, 2023

sorry for the slow reply @hansipete. can you provide an example of the code that produces the error (with secrets redacted)? thanks!

@vassadi
Copy link

vassadi commented Aug 21, 2024

Hello,

I was using like:

const sw = Splitwise({
   consumerKey: SPLITWISE_CONSUMER_KEY,
   consumerSecret: SPLITWISE_CONSUMER_SECRET,
 });

sw.getCurrentUser()
  .then((data) => {
     console.log(data);
  })
  .catch((e) => {
     console.log(e);
  });

And am getting:
Error: getCurrentUser - getCurrentUser - authentication failed - unknown error

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

3 participants