Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 1 addition & 27 deletions src/frontend/src/authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,32 +99,6 @@ export const authMethods = [
/>
),
},
{
icon: <Infinity />,
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) => {
Expand Down Expand Up @@ -184,7 +158,7 @@ export const LoginMasks = ({
{methods.map((method) => (
<div
key={method.label}
className={`left_spaced right_spaced bottom_spaced ${method.deprecated ? "inactive" : ""}`}
className="left_spaced right_spaced bottom_spaced"
>
<ButtonWithLoading
key={method.label}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export const MAINNET_MODE = STAGING_MODE || process.env.DFX_NETWORK == "ic";
export const CANISTER_ID = process.env.CANISTER_ID || "";

export const II_URL = MAINNET_MODE
? "https://id.ai"
? "https://id.ai/?feature_flag_guided_upgrade=true"
: "http://localhost:9090/?canisterId=qhbym-qaaaa-aaaaa-aaafq-cai";