(clientId: string | undefined, clientSecret: string | undefined)
| 1064 | */ |
| 1065 | function getProviderAuthConfig(provider: string): ProviderAuthConfig { |
| 1066 | const getCredentials = (clientId: string | undefined, clientSecret: string | undefined) => { |
| 1067 | if (!clientId || !clientSecret) { |
| 1068 | throw new Error(`Missing client credentials for provider: ${provider}`) |
| 1069 | } |
| 1070 | return { clientId, clientSecret } |
| 1071 | } |
| 1072 | |
| 1073 | switch (provider) { |
| 1074 | case 'google': { |
no outgoing calls
no test coverage detected