From ccc7784489736eb3da5d23e58b12343c90aec149 Mon Sep 17 00:00:00 2001 From: Paola Date: Tue, 6 Jul 2021 20:49:15 -0600 Subject: [PATCH] Remover procesos en service Google --- .../login/usuario-google-log-in.service.ts | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/main/webapp/app/login/usuario-google-log-in.service.ts b/src/main/webapp/app/login/usuario-google-log-in.service.ts index 5d6818c..a6c3739 100644 --- a/src/main/webapp/app/login/usuario-google-log-in.service.ts +++ b/src/main/webapp/app/login/usuario-google-log-in.service.ts @@ -5,28 +5,5 @@ import { Observable, ReplaySubject } from 'rxjs'; providedIn: 'root', }) export class UsuarioGoogleLogInService { - constructor(private auth2: gapi.auth2.GoogleAuth, private subject: ReplaySubject) { - gapi.load('auth2', () => { - this.auth2 = gapi.auth2.init({ - client_id: '178178891217-b517thad8f15d4at2vk2410v7a09dcvt.apps.googleusercontent.com', - }); - }); - } - - public sigIn() { - this.auth2 - .signIn({ - // - }) - .then(user => { - this.subject.next(user); - }) - .catch(() => { - this.subject.next(); //NULL - }); - } - - public observable(): Observable { - return this.subject.asObservable(); - } + constructor() {} }