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

Function getRateLimitTier

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

Source from the content-addressed store, hash-verified

1696}
1697
1698export function getRateLimitTier(): string | null {
1699 if (!isAnthropicAuthEnabled()) {
1700 return null
1701 }
1702 const oauthTokens = getClaudeAIOAuthTokens()
1703 if (!oauthTokens) {
1704 return null
1705 }
1706
1707 return oauthTokens.rateLimitTier ?? null
1708}
1709
1710export function getSubscriptionName(): string {
1711 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