This commit is contained in:
vigdorov
2020-10-24 10:57:12 +03:00
parent bca8c6cb81
commit 9f49aa39f5
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ export class AuthService {
) {}
async checkRequest(request: Request): Promise<boolean> {
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();

View File

@ -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<User> {
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