Files
triggerdotdev--trigger.dev/docs/sdk/connection-auth.mdx
T
2023-08-02 15:09:35 +01:00

26 lines
743 B
Plaintext

---
title: "ConnectionAuth"
sidebarTitle: "ConnectionAuth"
description: "An object containing the auth data for an integration that's using hosted auth."
---
## Properties
<ParamField body="type" type="string" required>
The type of auth. Currently we only support `oauth2`.
</ParamField>
<ParamField body="accessToken" type="string" required>
The access token that will be used to authenticate requests to the
integration.
</ParamField>
<ParamField body="scopes" type="string[]">
The scopes that were granted by the user during the auth process.
</ParamField>
<ParamField body="additionalFields" type="Record<string, string>">
Any additional fields that were returned by the integration during the auth
process.
</ParamField>