Skip to content

Don't accept Replicate API tokens for CLI login#1978

Merged
nickstenning merged 1 commit intomainfrom
dont-accept-replicate-api-tokens-for-cli-auth
Oct 7, 2024
Merged

Don't accept Replicate API tokens for CLI login#1978
nickstenning merged 1 commit intomainfrom
dont-accept-replicate-api-tokens-for-cli-auth

Conversation

@nickstenning
Copy link
Copy Markdown
Contributor

If the token pasted for CLI login starts with r8_, reject it with an error message before we even start.

This also clears up some of the surrounding copy, which is pretty confusing and could easily have led to people thinking an API token was valid here.

If the token pasted for CLI login starts with `r8_`, reject it with an
error message before we even start.

This also clears up some of the surrounding copy, which is pretty
confusing and could easily have led to people thinking an API token was
valid here.
@nickstenning nickstenning requested a review from a team October 7, 2024 14:52
@nickstenning nickstenning merged commit be927af into main Oct 7, 2024
@nickstenning nickstenning deleted the dont-accept-replicate-api-tokens-for-cli-auth branch October 7, 2024 15:11
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.

2 participants