Automatic ii login

can we do like automatic ii login ? Like if i have deployed two links one for mainnet one for other mainnet . i want when i first login in mainnet link and when i click on toggle it show some thing in url , as in when we navigate we don’t need to do login manually , but it happen itself with same identity . is it possible , we are working on web 3 ? i would love to know your thoughts about this.

Hi!

Can you be more specific to what you mean by “testnet”? Internet Computer has only one mainnet, and I don’t think there is any “official testnet”.

Sorry, but I need a bit more details on what you mean by “testnet” or what “testnet token”. Can you give me an example of “testnet token”?

Internet Computer doesn’t have a testnet like other blockchains.

my point is like i have 2 links ok both deployed and live so can i do automatic login when i have done in one and go from one link (site) to other (both made on web 3 ) then is it possible to not login there maually but get automatically logined using some thing from url or is not possible ?

When you deploy to IC, you always deploy to the mainnet. Therefore, you are dealing with real tokens and real assets.

There is no way to change that to access “test” assets.

Maybe if you give me more details about what you are trying to accomplish or test I can be of more help.

see if we just leave this testnet word we suppose there are two mainnet links if i toggle button in one link it takes me to another link from url i send thm maybe a session identity or something which i want to know what could it be so that i dont need to login again and it gets logged in with same internet identity although both links are entirely different nothing connected is it possible ?

basically both are mainnet only so testnet was just a word you can say that

Your II generates a unique principal ID tied to every different “link” you login with. If you login with II, your session will only be tied to that one “link” or dApp and can’t be transferred across different “links”. You’ll have to login again to that other link with your II so that it creates a new unique principal ID.

1 Like

What if we use a middleware and use its delegated data to connect with both the dapp ?

I don’t have much experience on that. Maybe it’s possible, or maybe you don’t need II for your use case, because by design, as I understand, II is supposed to make you anonymous for every site you visit. You’re actually trying to do the opposite by using the same principal ID for different sites.

It’s possible to share the same principal across different domain with Internet identity by configuring alternative frontend origins: Alternative frontend origins | Internet Computer

Internet Identity does not support silent authentication (as seen in e.g. SSO) at this moment. This means that if you authenticate with domain A and then navigate to (alternative frontend origin) domain B, you’d still need to authenticate again.