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

Function shouldCheckForPasses

src/services/api/referral.ts:71–77  ·  view source on GitHub ↗

* Prechecks for if user can access guest passes feature

()

Source from the content-addressed store, hash-verified

69 * Prechecks for if user can access guest passes feature
70 */
71function shouldCheckForPasses(): boolean {
72 return !!(
73 getOauthAccountInfo()?.organizationUuid &&
74 isClaudeAISubscriber() &&
75 getSubscriptionType() === 'max'
76 )
77}
78
79/**
80 * Check cached passes eligibility from GlobalConfig

Callers 2

Calls 3

getSubscriptionTypeFunction · 0.85
getOauthAccountInfoFunction · 0.50
isClaudeAISubscriberFunction · 0.50

Tested by

no test coverage detected