Lots of APIs use API Keys or Personal Access Tokens to authenticate. This guide will show you how to use them.
Note that we used 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.
There are two way to use Integrations in a Job:
run
function, by passing the Integration client into the integrations
object.This example automatically assigns “matt-aitken” to any new issue in the trigger.dev
repo (lucky him).
The "Integrations" page shows
Some useful things on this page
id
that you gave the connection when you defined it in your codeLots of APIs use API Keys or Personal Access Tokens to authenticate. This guide will show you how to use them.
Note that we used 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.
There are two way to use Integrations in a Job:
run
function, by passing the Integration client into the integrations
object.This example automatically assigns “matt-aitken” to any new issue in the trigger.dev
repo (lucky him).
The "Integrations" page shows
Some useful things on this page
id
that you gave the connection when you defined it in your code