---
title: sourceToken
description: >-
  The token `source`'s credentials authenticate with: the configured one, or the
  App's installation token, kept.
updated_at: '2026-11-26T00:01:46+01:00'
created_at: '2026-11-19T08:33:37+01:00'
symbol:
  kind: function
  name: sourceToken
  signatures:
    - >-
      sourceToken(options:
      [[reference/api/plugin-submissions/commits/CommitSource-interface|CommitSource]]):
      (env: Readonly<Record<string, unknown>>) => Promise<string>
  parameters:
    - name: options
      type: >-
        [[reference/api/plugin-submissions/commits/CommitSource-interface|CommitSource]]
  returns:
    type: '(env: Readonly<Record<string, unknown>>) => Promise<string>'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/commits.ts#L249
---

# sourceToken
