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