From c5139f66848c76907c93076cffc185518dc248e3 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 Feb 2026 00:27:09 +0500 Subject: [PATCH] Remove legacy Internet Identity auth method and add guided upgrade flag to id.ai Internet Identity has migrated to id.ai, and legacy identity.ic0.app is no longer necessary as it now redirects to id.ai. Following the migration guide from: https://forum.dfinity.org/t/migrate-your-app-to-id-ai-for-internet-identity-sign-in/63708 - Remove "Internet Identity (Legacy)" authentication method - Add feature_flag_guided_upgrade=true parameter to id.ai URL for mainnet/staging --- src/frontend/src/authentication.tsx | 28 +--------------------------- src/frontend/src/env.ts | 2 +- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/src/frontend/src/authentication.tsx b/src/frontend/src/authentication.tsx index f355a3f6..790d589e 100644 --- a/src/frontend/src/authentication.tsx +++ b/src/frontend/src/authentication.tsx @@ -99,32 +99,6 @@ export const authMethods = [ /> ), }, - { - icon: , - label: "Internet Identity (Legacy)", - deprecated: true, - description: - "Decentralized authentication service hosted on IC and based on biometric devices.", - login: async (signUp?: boolean) => { - if ( - (location.href.includes(".raw") || - location.href.includes("share.")) && - confirm( - "You're using an uncertified, insecure frontend. Do you want to be re-routed to the certified one?", - ) - ) { - location.href = location.href.replace(".raw", ""); - return null; - } - window.authClient.login({ - onSuccess: () => finalize(signUp), - identityProvider: "https://identity.ic0.app", - maxTimeToLive: BigInt(30 * 24 * 3600000000000), - derivationOrigin: window.location.origin, - }); - return null; - }, - }, ]; const finalize = async (signUp?: boolean) => { @@ -184,7 +158,7 @@ export const LoginMasks = ({ {methods.map((method) => (