共用方式為


CredentialPolicyCreator type

Factory 函式,會建立使用所提供 nextPolicy 的新 CredentialPolicy。

type CredentialPolicyCreator = (
  nextPolicy: RequestPolicy,
  options: RequestPolicyOptions
) => CredentialPolicy