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

Function getRateLimitTier

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

Source from the content-addressed store, hash-verified

1768}
1769
1770export function getRateLimitTier(): string | null {
1771 if (!isAnthropicAuthEnabled()) {
1772 return null
1773 }
1774 const oauthTokens = getClaudeAIOAuthTokens()
1775 if (!oauthTokens) {
1776 return null
1777 }
1778
1779 return oauthTokens.rateLimitTier ?? null
1780}
1781
1782export function getSubscriptionName(): string {
1783 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