MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getSubscriptionName

Function getSubscriptionName

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

Source from the content-addressed store, hash-verified

1780}
1781
1782export function getSubscriptionName(): string {
1783 const subscriptionType = getSubscriptionType()
1784
1785 switch (subscriptionType) {
1786 case 'enterprise':
1787 return 'Claude Enterprise'
1788 case 'team':
1789 return 'Claude Team'
1790 case 'max':
1791 return 'Claude Max'
1792 case 'pro':
1793 return 'Claude Pro'
1794 default:
1795 return 'Claude API'
1796 }
1797}
1798
1799/** Check if using third-party services (Bedrock or Vertex or Foundry) */
1800export function isUsing3PServices(): boolean {

Callers 2

getAccountInformationFunction · 0.85
getLogoDisplayDataFunction · 0.85

Calls 1

getSubscriptionTypeFunction · 0.85

Tested by

no test coverage detected