Skip to content

Commit

Permalink
rename en variable for better understanding
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne-Marie committed Aug 6, 2020
1 parent c729c5e commit 0cae594
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_API_URL=
REACT_APP_BASE_URL=
REACT_APP_BACK_BASE_URL=
6 changes: 5 additions & 1 deletion src/utils/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export function getOauthTokenOrRedirect(): string {
return "";
}

const LOGIN_PAGE_URL = `${process.env.REACT_APP_BASE_URL}/auth/google_oauth2`
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');


export function redirectToLoginPage() {
window.location.href = `${LOGIN_PAGE_URL}?redirect_to=${window.location.href}`;
Expand Down

0 comments on commit 0cae594

Please sign in to comment.