From 5d6461bef7cbac46eb7a677b62dac041302d04ef Mon Sep 17 00:00:00 2001 From: Anne-Marie Date: Thu, 6 Aug 2020 14:45:11 +0200 Subject: [PATCH] refacto --- src/utils/token.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/token.ts b/src/utils/token.ts index 4a35dc8..d580eea 100644 --- a/src/utils/token.ts +++ b/src/utils/token.ts @@ -30,11 +30,7 @@ export function getOauthTokenOrRedirect(): string { return ""; } -const appBackBaseUrl = process.env.REACT_APP_BACK_BASE_URL -const LOGIN_PAGE_URL = `${process.env.REACT_APP_BACK_BASE_URL}/auth/google_oauth2` - -console.log('LOGIN_PAGE_URL'); - +const LOGIN_PAGE_URL = `${process.env.REACT_APP_BACK_BASE_URL}/auth/google_oauth2`; export function redirectToLoginPage() { window.location.href = `${LOGIN_PAGE_URL}?redirect_to=${window.location.href}`;