MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / isAllowedProvider

Function isAllowedProvider

api/src/utils/env.ts:36–38  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

34 process.env.FREECODECAMP_NODE_ENV || 'production';
35
36function isAllowedProvider(provider: string): provider is 'ses' | 'nodemailer' {
37 return ['ses', 'nodemailer'].includes(provider);
38}
39
40function createTestConnectionURL(url: string, dbId?: string) {
41 assert.notEqual(

Callers 1

env.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected