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

Function getRateLimitTier

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

Source from the content-addressed store, hash-verified

1700}
1701
1702export function getRateLimitTier(): string | null {
1703 if (!isAnthropicAuthEnabled()) {
1704 return null
1705 }
1706 const oauthTokens = getClaudeAIOAuthTokens()
1707 if (!oauthTokens) {
1708 return null
1709 }
1710
1711 return oauthTokens.rateLimitTier ?? null
1712}
1713
1714export function getSubscriptionName(): string {
1715 const subscriptionType = getSubscriptionType()

Callers 5

RateLimitMessageFunction · 0.85
getPlanModeV2AgentCountFunction · 0.85
user.tsFile · 0.85
isTeamPremiumSubscriberFunction · 0.85
RateLimitOptionsMenuFunction · 0.85

Calls 1

isAnthropicAuthEnabledFunction · 0.85

Tested by

no test coverage detected