From 9f49aa39f5e5763a43945d91c04a6109ae223831 Mon Sep 17 00:00:00 2001 From: vigdorov Date: Sat, 24 Oct 2020 10:57:12 +0300 Subject: [PATCH] https --- src/services/auth.service.ts | 2 +- src/store/store.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/auth.service.ts b/src/services/auth.service.ts index 92d4a2f..cb7b14b 100644 --- a/src/services/auth.service.ts +++ b/src/services/auth.service.ts @@ -8,7 +8,7 @@ export class AuthService { ) {} async checkRequest(request: Request): Promise { - const {data} = await this.http.post('http://api.auth.vigdorov.ru/auth/check', { + const {data} = await this.http.post('https://api.auth.vigdorov.ru/auth/check', { access_token: request.headers.authorization, agent: request.headers['user-agent'] }).toPromise(); diff --git a/src/store/store.service.ts b/src/store/store.service.ts index 7f2548b..26caa2f 100644 --- a/src/store/store.service.ts +++ b/src/store/store.service.ts @@ -76,7 +76,7 @@ export class StoreService { const {login, agent} = jwt.decode(access_token) as Token; - const apiPath = 'http://api.auth.vigdorov.ru/users/search/'; + const apiPath = 'https://api.auth.vigdorov.ru/users/search/'; const headers = { Authorization: access_token, 'user-agent': agent @@ -117,7 +117,7 @@ export class StoreService { async loadUserByToken(access_token: string): Promise { const {login, agent} = jwt.decode(access_token) as Token; - const apiPath = 'http://api.auth.vigdorov.ru/users/search/'; + const apiPath = 'https://api.auth.vigdorov.ru/users/search/'; const headers = { Authorization: access_token, 'user-agent': agent