Skip to content
IC Reactor

localInternetIdentityProvider

localInternetIdentityProvider(port, canisterId?, authorizePath?): string

Defined in: react/src/auth/constants.ts:22

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.

number

string = LOCAL_INTERNET_IDENTITY_CANISTER_ID

"/authorize" | "/#authorize"

string