---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / resolveClientAuthMethod

# Function: resolveClientAuthMethod()

> **resolveClientAuthMethod**(`clientSecret`, `method?`): [`ClientAuthMethod`](../type-aliases/ClientAuthMethod.md)

Defined in: [packages/b2c-tooling-sdk/src/auth/client-credentials.ts:108](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/auth/client-credentials.ts#L108)

Resolves the effective client authentication method. An explicit method
always wins; otherwise a sandbox credential placeholder selects
`basic-unencoded` (so the proxy can find it in the header) and everything
else uses `basic`.

## Parameters

### clientSecret

`string`

The OAuth client password/secret

### method?

[`ClientAuthMethod`](../type-aliases/ClientAuthMethod.md)

The configured method, if any

## Returns

[`ClientAuthMethod`](../type-aliases/ClientAuthMethod.md)
