Skip to content

Commit c53c0e8

Browse files
committed
feat: Update default to prefer API keys for channels that aren't configured with repo-token as default
1 parent a22cb44 commit c53c0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anaconda_auth/_conda/auth_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _load_token_domain(self, parsed_url: ParseResult) -> tuple[str, CredentialTy
5353

5454
# Set defaults for behavior when not overridden by configuration
5555
token_domain = channel_domain
56-
credential_type = CredentialType.REPO_TOKEN
56+
credential_type = CredentialType.API_KEY
5757

5858
# For specific channel domains, we override the defaults
5959
if channel_domain in TOKEN_DOMAIN_MAP:

0 commit comments

Comments
 (0)