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

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

# Function: getDefaultPublicClientId()

> **getDefaultPublicClientId**(`accountManagerHost?`): `string`

Defined in: [packages/b2c-tooling-sdk/src/defaults.ts:116](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/defaults.ts#L116)

Returns the default public client ID for the given Account Manager host.
Falls back to DEFAULT\_PUBLIC\_CLIENT\_ID for hosts without an override.

## Parameters

### accountManagerHost?

`string`

The Account Manager hostname

## Returns

`string`

The appropriate public client ID for that host
