---
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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/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)
