MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / generateAppleClientSecret

Function generateAppleClientSecret

apps/web/src/lib/user/server.ts:109–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107import {
108 isKiloCredentialExchangeEligible,
109 verifyKiloTokenForPolicy,
110 type KiloCredentialExchangeEligibilityPolicy,
111} from '@kilocode/worker-utils/kilo-token-policy';
112
113export type TurnstileJwtPayload = {
114 /**
115 * SECURITY: this guid MUST be generated server side!
116 * It's used to ensure idempotency, but also to determine the user id.
117 */
118 guid: UUID;
119 ip: string;
120 iat: number;
121 exp: number;
122};
123
124const warnInSentry = sentryLogger('user.server', 'warning');
125
126import { getBlacklistedDomains } from '@/lib/blacklist-domains-config';
127
128const blacklistDomainsEnv = getEnvVariable('BLACKLIST_DOMAINS');
129const BLACKLIST_DOMAINS_FROM_ENV = blacklistDomainsEnv
130 ? blacklistDomainsEnv.split('|').map((domain: string) => domain.trim())
131 : [];
132
133function generateAppleClientSecret(): string {
134 if (!APPLE_PRIVATE_KEY || !APPLE_KEY_ID || !APPLE_TEAM_ID || !APPLE_CLIENT_ID) {

Callers 1

server.tsFile · 0.85

Calls 2

signMethod · 0.80
replaceMethod · 0.65

Tested by

no test coverage detected