Skip to content

confirmPendingAuth — @gj-kit/toss-payments

A public function from @gj-kit/toss-payments/server. The signature below is taken directly from the 0.6.1 release declaration.

import { confirmPendingAuth } from '@gj-kit/toss-payments/server';
/**
* 세션에 저장된 customerKey와 대조 — 통과해야만 AuthKeyReceived.
* 이 단계를 건너뛰고 issue를 호출할 방법이 없다 (쿼리 값은 위변조 가능 — 문서도
* "검증 후 발급 API 호출"을 요구).
*/
declare function confirmPendingAuth(pending: PendingBillingAuth, expectedCustomerKey: CustomerKey): Result<AuthKeyReceived, {
readonly source: 'library';
readonly kind: 'customer-key-mismatch';
readonly expected: string;
readonly returned: string;
}>;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/toss-payments
  • Version: 0.6.1
  • Public entry: ./server
  • Source: GitHub