Instance methods
defineAuthResolver()
Define a custom auth resolver for a specific integration
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Auth Resolvers allow you to inject the authentication credentials of your users, using a third-party service like Clerk or Nango or your own custom solution.
See our Bring-your-own Auth Guide for more about how this works.
Parameters
The Integration client (e.g. slack
) to define the auth resolver for.
The resolver function to use for this integration. Should return a AuthResolverResult object.
AuthResolverResult
Should be either “apiKey” or “oauth”
The authentication token to use for this integration.
Additional fields to pass to the integration.