Lots of APIs use API Keys or Personal Access Tokens to authenticate. This guide will show you how to use them.
process.env.GITHUB_TOKEN
and process.env.OPENAI_API_KEY
. They’re environment variables, which are a way of not putting secret values directly in your code.
For Next.js, local environment variables usually live in a .env.local
file in the root of the project.
run
function, by passing the Integration client into the integrations
object.trigger.dev
repo (lucky him).
id
that you gave the connection when you defined it in your code