API key not used

651 0
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

Hey everyone,

I'm using the the "airtable" npm package to hook into the Airtable API in my nodeJS project. I was playing around with how the API is initialized and realized that if I pass an "undefined" apiKey, that the queries still work as long as I pass in a baseId. This is how I'm initializing it...

const base = new AirtableApi({ apiKey }).base(baseId)

Does anyone know why this would work even if "apiKey" is undefined?


0 Replies 0