MCPcopy Index your code
hub / github.com/simstudioai/sim / getCredentials

Function getCredentials

apps/sim/lib/oauth/oauth.ts:1066–1071  ·  view source on GitHub ↗
(clientId: string | undefined, clientSecret: string | undefined)

Source from the content-addressed store, hash-verified

1064 */
1065function 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': {

Callers 1

getProviderAuthConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected