(apiKey: string)
| 54 | } |
| 55 | |
| 56 | function verifyApiKey(apiKey: string) { |
| 57 | if (apiKey.startsWith(privateApiKeyStartsWith)) { |
| 58 | throw new Error( |
| 59 | `You are using a private API key, you should not do this because the value is visible to the client.` |
| 60 | ); |
| 61 | } |
| 62 | |
| 63 | if (!apiKey.startsWith(publicApiKeyStartsWith)) { |
| 64 | console.error( |
| 65 | `TriggerProvider publicApiKey wasn't in the correct format. Should be ${publicApiKeyStartsWith}...` |
| 66 | ); |
| 67 | } |
| 68 | } |
no test coverage detected
searching dependent graphs…