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

ihatemoney project with differing id/token and name not working #74

Open
m-idler opened this issue Mar 30, 2024 · 0 comments
Open

ihatemoney project with differing id/token and name not working #74

m-idler opened this issue Mar 30, 2024 · 0 comments

Comments

@m-idler
Copy link
Collaborator

m-idler commented Mar 30, 2024

Just encountered an issues with an ihatemoney project where the project id/token and the name is differing. This results in bills and project members not being loaded.

issue is caused by usage of the project name instead of the project token when building the authString:

guard let authString = "\(project.name):\(project.password)".data(using: .utf8)?.base64EncodedString() else { fatalError("error generating authString. THIS SHOULD NOT HAPPEN") }

see https://ihatemoney.readthedocs.io/en/latest/api.html#authentication for authentication details

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

1 participant