docs: Internet Identity authentication guide#38
Conversation
Review: Internet Identity authentication guideMust fix
Suggestions
Verified
|
|
Please review before merging. |
13ac4ff to
3e00088
Compare
3e00088 to
2e08dce
Compare
|
Feedback addressed:
|
…js pattern - Replace shouldFetchRootKey/verifyQuerySignatures with safeGetCanisterEnv() pattern; rootKey: canisterEnv?.IC_ROOT_KEY works in both local and production without environment branching - Remove dead II_FRONTEND_CANISTER_ID constant - Add Node.js note: fetchRootKey() is acceptable for local-only scripts, never mainnet - Fix CLI test: use --identity flag instead of mutating global default identity - Mention both II canister IDs (backend + frontend); note they are identical locally with ii: true - Fix .ic-assets.json -> .ic-assets.json5 in alternative origins section - Update Common mistakes entry with correct nuanced guidance
|
Review complete. All findings addressed in commit 80674b4: Fixed:
Verified:
|
Summary
safeGetCanisterEnv()/ic_envcookie for root key handling in browser contexts — noshouldFetchRootKeyor environment branchingfetchRootKey()is acceptable for local-only scripts, never on mainnetrdmx6-...and frontenduqzsh-...), noting they are identical on local replicas withii: true--identityflag for CLI testing, alternative origins, common mistakesSync recommendation
informed by dfinity/portal — docs/building-apps/authentication/overview.mdx, docs/building-apps/authentication/integrate-internet-identity.mdx, docs/building-apps/authentication/alternative-origins.mdx; dfinity/icskills — skills/internet-identity/SKILL.md