Skip to content

Commit

Permalink
refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne-Marie committed Aug 6, 2020
1 parent 0cae594 commit 5d6461b
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 5d6461b

Please sign in to comment.