From 8d6662612e70304ba30c4a495d47c700f74134fb Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Fri, 7 Jun 2024 13:06:48 +0200 Subject: [PATCH] log 4 --- src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts b/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts index 245707ee..74c22628 100644 --- a/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts +++ b/src/chat21-core/providers/tiledesk/tiledesk-auth.service.ts @@ -118,10 +118,10 @@ export class TiledeskAuthService { }); const requestOptions = { headers: headers }; const that = this; - console.log('signInWithCustomToken--> outttt', this.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN, that.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN) + console.log('signInWithCustomToken--> outttt', this.SERVER_BASE_URL, this.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN, that.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN) return new Promise((resolve, reject) => { - console.log('signInWithCustomToken-->', this.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN, that.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN) - that.http.post('http://35.198.150.252/api/auth/signinWithCustomToken', null, requestOptions).subscribe({next: (data)=>{ + console.log('signInWithCustomToken-->', that.SERVER_BASE_URL, this.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN, that.URL_TILEDESK_SIGNIN_WITH_CUSTOM_TOKEN) + that.http.post( that.SERVER_BASE_URL + '/auth/signinWithCustomToken', null, requestOptions).subscribe({next: (data)=>{ if (data['success'] && data['token']) { that.tiledeskToken = data['token']; that.createCompleteUser(data['user']);