Commit 05c039c6 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

Fix: npm run serve doesn't pick up env vars

parent cd03dae8
......@@ -13,7 +13,7 @@ export function checkAccessTokens(dispatch, getState) {
console.log('Application config: ', getState().applicationConfig);
const applicationLogin = () =>
LoginService.loginApp(getState().applicationConfig.clientId)
LoginService.loginApp()
.then((data) => {
// console.log('loginApp token', data);
saveCookies({access_token: data.access_token, authorities: [ROLE_CLIENT]}, data.exp * 1000 || new Date().getTime() + data.expires_in * 1000);
......
......@@ -14,7 +14,7 @@ export const VERIFY_GOOGLE_TOKEN_URL = `/api/google/verify-token`;
export class LoginService {
public static loginApp(clientId: string, clientSecret?: string, baseURL?: string) {
public static loginApp(clientId?: string, clientSecret?: string, baseURL?: string) {
return axiosBackend.post(LOGIN_URL, null, {
baseURL: baseURL || '/proxy',
params: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment