Skip to content

Conversation

@jelaniwoods
Copy link
Contributor

@jelaniwoods jelaniwoods commented Jan 28, 2026

Resolves #48

The recommended way to validate an API token appears to be making an API call and checking if there's an authentication error.
This API call does not cost money to hit, so it should be fine to use.

I've removed mention of prepend.me from the validation error when proxying is disabled, since it could be confusing if prepend.me hasn't been mentioned.

I'm only validating the token once, since there's no public method to update the token after initialization.

@jelaniwoods jelaniwoods changed the title Update API validation messagesw Update API validation messages Jan 28, 2026
Copy link

@bpurinton bpurinton left a comment

Choose a reason for hiding this comment

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

Tested, working, LGTM.

@jelaniwoods jelaniwoods merged commit 7af6deb into main Jan 29, 2026
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.

Better validation error message for api key

3 participants