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.
Parameters
Section titled “Parameters”number
canisterId?
Section titled “canisterId?”string = LOCAL_INTERNET_IDENTITY_CANISTER_ID
authorizePath?
Section titled “authorizePath?”"/authorize" | "/#authorize"
Returns
Section titled “Returns”string