Skip to content

asApp

asApp(adapter): BoundClient

Defined in: packages/core/src/client/BoundClient.ts:49

Make API calls as the Forge app itself. This is the default and most common auth context for backend operations.

Use this for operations that the app performs autonomously — not on behalf of a specific user.

ForgeAdapter

BoundClient

import { asApp } from '@forge-clients/core';
import { getIssue } from '@forge-clients/jira/v3';
const client = asApp(adapter);
const issue = await getIssue(client, { issueIdOrKey: 'PROJ-1' });