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

Improve token error msg #227

Merged
merged 4 commits into from
Apr 11, 2021
Merged

Improve token error msg #227

merged 4 commits into from
Apr 11, 2021

Conversation

lowlighter
Copy link
Owner

This will send a test request before rendering to verify that given token is valid and can be used.

Using a HEAD request, it'll check whether it throws a 401 Bad credentials (i.e. invalid token) or a response without x-oauth-scopes header (meaning that GITHUB_TOKEN has probably be used instead)

@lowlighter lowlighter merged commit 432d721 into master Apr 11, 2021
@lowlighter lowlighter deleted the feat-better-token-error-msg branch April 11, 2021 20:51
@lowlighter lowlighter mentioned this pull request Apr 11, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant