Pārlūkot izejas kodu

Remove unused auth-url

Manav Rathi 1 gadu atpakaļ
vecāks
revīzija
6a1c82429a
3 mainītis faili ar 0 papildinājumiem un 15 dzēšanām
  1. 0 4
      apps/photos/.env.development
  2. 0 10
      packages/shared/network/api.ts
  3. 0 1
      turbo.json

+ 0 - 4
apps/photos/.env.development

@@ -56,10 +56,6 @@
 # Enhancement: Consider moving that into the app/ folder in this repository.
 # NEXT_PUBLIC_ENTE_FAMILY_PORTAL_ENDPOINT = http://localhost:3003
 
-# URL of the auth deployment. Currently unused
-# TODO (MR): Remove me
-# NEXT_PUBLIC_ENTE_AUTH_ENDPOINT = http://localhost:3004
-
 # This in not useful when running locally. It is used to provide us a way to
 # mark certain deployments as "staging" by setting environment variables in the
 # CI job that deploys them on a remote server. See the `isDevDeployment`

+ 0 - 10
packages/shared/network/api.ts

@@ -78,16 +78,6 @@ export const getFamilyPortalURL = () => {
     return `https://family.ente.io`;
 };
 
-// getAuthenticatorURL returns the endpoint for the authenticator which can be used to
-// view authenticator codes.
-export const getAuthURL = () => {
-    const authURL = process.env.NEXT_PUBLIC_ENTE_AUTH_ENDPOINT;
-    if (isDevDeployment() && authURL) {
-        return authURL;
-    }
-    return `https://auth.ente.io`;
-};
-
 export const getSentryTunnelURL = () => {
     return `https://sentry-reporter.ente.io`;
 };

+ 0 - 1
turbo.json

@@ -24,7 +24,6 @@
         "NEXT_PUBLIC_ENTE_PAYMENT_ENDPOINT",
         "NEXT_PUBLIC_ENTE_ALBUM_ENDPOINT",
         "NEXT_PUBLIC_ENTE_FAMILY_PORTAL_ENDPOINT",
-        "NEXT_PUBLIC_ENTE_AUTH_ENDPOINT",
         "NEXT_PUBLIC_ENTE_WEB_ENDPOINT",
         "NEXT_PUBLIC_IS_TEST_APP",
         "NODE_ENV",