MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / getRateLimitTier

Function getRateLimitTier

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

Source from the content-addressed store, hash-verified

1750}
1751
1752export function getRateLimitTier(): string | null {
1753 if (!isAnthropicAuthEnabled()) {
1754 return null
1755 }
1756 const oauthTokens = getClaudeAIOAuthTokens()
1757 if (!oauthTokens) {
1758 return null
1759 }
1760
1761 return oauthTokens.rateLimitTier ?? null
1762}
1763
1764export function getSubscriptionName(): string {
1765 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