AnthonyNahas / ngx-auth-firebaseui

Angular Material UI component for firebase authentication
https://ngx-auth-firebaseui.firebaseapp.com
MIT License
587 stars 165 forks source link

onAccountDeleted doesn't get called in the ngx-auth-firebaseui-user component #575

Open twixthehero opened 4 years ago

twixthehero commented 4 years ago

Bug Report or Feature Request (mark with an x)

- [x] bug report -> related issue #186 
- [ ] feature request

OS and Version?

Microsoft Windows [Version 10.0.19041.450]

Versions

Angular CLI: 9.1.12 Node: 12.13.0 OS: win32 x64

Angular: 9.1.12 ... animations, cli, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.901.12 @angular-devkit/build-angular 0.901.12 @angular-devkit/build-optimizer 0.901.12 @angular-devkit/build-webpack 0.901.12 @angular-devkit/core 9.1.12 @angular-devkit/schematics 9.1.12 @angular/cdk 9.2.4 @angular/fire 6.0.2 @angular/flex-layout 9.0.0-beta.31 @angular/material 9.2.4 @ngtools/webpack 9.1.12 @schematics/angular 9.1.12 @schematics/update 0.901.12 rxjs 6.5.5 typescript 3.8.3 webpack 4.42.0

Repro steps

<ngx-auth-firebaseui-user (onAccountDeleted)="accountDeleted()"></ngx-auth-firebaseui-user>

The log given by the failure

N/A

Desired functionality

accountDeleted() {
  console.log('account deleted');
}

accountDeleted() is called when onAccountDeleted emits.

Mention any other details that might be useful

related issue #186

I created a minimal reproduction: https://github.com/twixthehero/account-delete-test

  1. git clone git@github.com:twixthehero/account-delete-test
  2. cd account-delete-test && npm install
  3. Configure FirebaseAppConfig in src/app/app.module.ts
  4. Run npm start
  5. Open http://localhost:4200.
  6. Click 'Register' tab, create a new account.
  7. Once logged in, click 'delete account'.
AnthonyNahas commented 3 years ago

I will check that