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

TOKEN_FILE location and whitespace #8

Merged
merged 3 commits into from
Jul 3, 2022

Conversation

cmbuckley
Copy link
Contributor

If the OUT_DIR is used as a docroot, it’s a good idea to put the TOKEN_FILE outside this.

Also, if the file contains a trailing newline, this causes the authorisation to fail.

src/config.ts Outdated
@@ -10,7 +10,7 @@ export const config = {

export const BASE_DIR = process.cwd();
export const OUT_DIR = path.join(BASE_DIR, "slack-archive");
export const TOKEN_FILE = path.join(OUT_DIR, ".token");
export const TOKEN_FILE = path.join(BASE_DIR, ".token");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, so I'd rather not merge it in. The trim() above is a great idea though!

@felixrieseberg felixrieseberg merged commit 21a9401 into felixrieseberg:main Jul 3, 2022
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.

None yet

2 participants