MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / grantSignupCredits

Function grantSignupCredits

packages/billing/src/grant-credits.ts:329–344  ·  view source on GitHub ↗
(params: {
  userId: string
  logger: Logger
})

Source from the content-addressed store, hash-verified

327}
328
329export async function grantSignupCredits(params: {
330 userId: string
331 logger: Logger
332}): Promise<void> {
333 const { userId, logger } = params
334
335 await processAndGrantCredit({
336 userId,
337 amount: SIGNUP_FREE_CREDITS_GRANT,
338 type: 'free',
339 description: 'Signup free credits',
340 expiresAt: null,
341 operationId: `signup-free-${userId}`,
342 logger,
343 })
344}
345
346/**
347 * Revokes credits from a specific grant by operation ID.

Callers 2

auth-options.tsFile · 0.90

Calls 1

processAndGrantCreditFunction · 0.85

Tested by

no test coverage detected