MCPcopy
hub / github.com/codeaashu/claude-code / getSubscriptionName

Function getSubscriptionName

src/utils/auth.ts:1714–1729  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1712}
1713
1714export function getSubscriptionName(): string {
1715 const subscriptionType = getSubscriptionType()
1716
1717 switch (subscriptionType) {
1718 case 'enterprise':
1719 return 'Claude Enterprise'
1720 case 'team':
1721 return 'Claude Team'
1722 case 'max':
1723 return 'Claude Max'
1724 case 'pro':
1725 return 'Claude Pro'
1726 default:
1727 return 'Claude API'
1728 }
1729}
1730
1731/** Check if using third-party services (Bedrock or Vertex or Foundry) */
1732export function isUsing3PServices(): boolean {

Callers 2

getAccountInformationFunction · 0.85
getLogoDisplayDataFunction · 0.85

Calls 1

getSubscriptionTypeFunction · 0.85

Tested by

no test coverage detected