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

Trim whitespaces from access token #58

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

itz-Jana
Copy link
Contributor

@itz-Jana itz-Jana commented Nov 9, 2024

Some editors add a newline at the end of a file automatically, which currently is processed by comin.

This makes authentication at the remote fail.

As there are no newlines or other whitespace characters that are relevant, doing an input sanitization here makes sense.

Fixes #57 and probably also #38 (as Forgejo does not have a requirement for a specific username, when using an access token).

Required to remove newline character at the end of the file
that might be added by an editor
@nlewo
Copy link
Owner

nlewo commented Nov 13, 2024

Thank you.

Note I'm not sure modifying the content of such kind of file is a good idea, but ok, in practice it should not be harmful.

@nlewo nlewo merged commit 9afca85 into nlewo:main Nov 13, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

authentication required
2 participants