@@ -106,7 +106,7 @@ If your prompt uses the GitHub CLI `gh`, your template must pass the user's GitH
106106
107107` ` ` terraform
108108data "coder_external_auth" "github" {
109- id = "github"
109+ id = "github" # Must match your CODER_EXTERNAL_AUTH_0_ID
110110}
111111
112112resource "coder_agent" "dev" {
@@ -122,13 +122,13 @@ Note that tokens passed as environment variables represent a snapshot at task cr
122122-If your GitHub external auth is configured as a GitHub App with token expiration enabled (the default), tokens expire after 8 hours
123123-If configured as a GitHub OAuth App or GitHub App with expiration disabled, tokens remain valid unless unused for 1 year
124124
125- Recommendations :
125+ Because of this, we recommend to :
126126
127127-Keep tasks under 8 hours to avoid token expiration issues
128128-For longer workflows, break work into multiple sequential tasks
129129-If authentication fails mid-task, users must re-authenticate at /settings/external-auth and restart the task
130130
131- For more information, see our [ExternalAuthentcation documentation](https://coder.com/docs/admin/external-auth#configure-a-github-oauth-app).
131+ For more information, see our [ExternalAuthentication documentation](https://coder.com/docs/admin/external-auth#configure-a-github-oauth-app).
132132
133133# ## Step 3: Test Your Setup
134134