# localInternetIdentityProvider

> **localInternetIdentityProvider**(`port`, `canisterId?`): `string`

Defined in: [utils/constants.ts:27](https://github.com/B3Pay/ic-reactor/blob/c30ea0ec26d4e0252f1f93b6c3cd13fbc42ece15/packages/core/src/utils/constants.ts#L27)

Builds the local Internet Identity provider URL for the given replica port.

## Parameters

### port

`number`

Port the local replica is exposed on (e.g. `4943` for dfx,
  `8000` for icp-cli managed networks).

### canisterId?

`string` = `LOCAL_INTERNET_IDENTITY_CANISTER_ID`

Internet Identity canister ID. Defaults to the
  well-known principal [LOCAL\_INTERNET\_IDENTITY\_CANISTER\_ID](../variables/LOCAL_INTERNET_IDENTITY_CANISTER_ID.md).

## Returns

`string`