Skip to content

Commit

Permalink
refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne-Marie committed Aug 25, 2020
1 parent 592356e commit db30b70
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit db30b70

Please sign in to comment.