MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getRateLimitTier

Function getRateLimitTier

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

Source from the content-addressed store, hash-verified

1702}
1703
1704export function getRateLimitTier(): string | null {
1705 if (!isAnthropicAuthEnabled()) {
1706 return null
1707 }
1708 const oauthTokens = getClaudeAIOAuthTokens()
1709 if (!oauthTokens) {
1710 return null
1711 }
1712
1713 return oauthTokens.rateLimitTier ?? null
1714}
1715
1716export function getSubscriptionName(): string {
1717 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