Comments (4)
I think the simplest solution would be to add /canister_id
here (which replies with api::id) and replace canisterId
with a singleton (not the haskell kind, this kind) that fetches from /canister_id
. WDYT?
from internet-identity.
Not sure I follow. Are you describing how to not hardcode the canister id in the frontend?
from internet-identity.
My bad, yes of course! Is there any other reason why we'd check the canister ID?
from internet-identity.
The reason to check the canister id in post_upgrade is to fail at the last moment if an mistake in a canister upgrade proposal would otherwise override, say, the ledger.
But actually since @roman-kashitsyn 's stable memory format includes a magic string that is being checked, that should be sufficient, so I'll close this.
from internet-identity.
Related Issues (20)
- Gradient/blur ghost after warning page
- Ensure maxTimeToLive is bigint and not number
- Fingerprint security key option not found when adding the device to an existing account HOT 7
- Dropdown CSS / HTML HOT 1
- Post vitejs TODOs
- No "Select Remote Device"! HOT 2
- Possible tweaks to the slack action
- IC doesn't provide the option to use a smartphone for signing in HOT 2
- Ict
- latest release seems broken locally HOT 1
- Failures when using password manager Bitwarden to to store passkeys HOT 9
- Dev II wasm broken in `release-2024-01-05` HOT 4
- UX: Unify login experience HOT 1
- Warning box border gradient covers text
- Cannot display alternative origin on mobile
- Error details caret is misaligned
- Warnbox border gradient is cut off on iPad HOT 9
- Update to dfx 0.12 HOT 2
- Make cards mobile-friendly
- Identity for things? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from internet-identity.