# localInternetIdentityProvider

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

Defined in: [react/src/auth/constants.ts:22](https://github.com/B3Pay/ic-reactor/blob/ad82a03d03149c25f0d0f63e453f62e284c28b02/packages/react/src/auth/constants.ts#L22)

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

`authorizePath` selects the shape the installed build understands: modern
builds serve `/authorize` as a real asset, while pre-2026 ones serve the SPA
at `/` and drive the flow from a `#authorize` fragment. `AuthenticationManager`
probes the canister and passes the right one; the default keeps the previous
behaviour for direct callers.

## Parameters

### port

`number`

### canisterId?

`string` = `LOCAL_INTERNET_IDENTITY_CANISTER_ID`

### authorizePath?

`"/authorize"` \| `"/#authorize"`

## Returns

`string`