Giovanni Andres Alzate Agudelo
Mi metodo register en el service:
register(name: string, email: string, password: string) { return this.http .post(`${this.apiUrl}/api/v1/auth/register`, { name, email, password }) .pipe( catchError((error) => { //console.log("errror from service ", error) if (error.error.code === 'SQLITE_CONSTRAINT_UNIQUE') { return throwError('El usuario ya existe'); } return throwError('Ups algo salio mal'); }) ) }