angular-token icon indicating copy to clipboard operation
angular-token copied to clipboard

Create a observable with the logic of userSignedIn() method

Open ArmandoPerdomo opened this issue 6 years ago • 2 comments

I'm submitting a...

  • [ ] Regression (a behavior that used to work and stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Feature request
  • [ ] Documentation issue or request
  • [ ] Other... Please describe:

Current behavior

Actually userSignedIn() method can be used when is called only

Expected behavior

userSignedIn can be a observable, this ensures when the data changes to false, subscribers callbacks can be executed

What is the motivation / use case for changing the behavior?

In my app when user logout, is difficult handle with this method

Environment

Angular-Token version: ^7.0.1 Angular version: 7.1.4

Bundler

  • [x] Angular CLI (Webpack)
  • [ ] Webpack
  • [ ] SystemJS

Browser:

  • [x] Chrome (desktop) version XX
  • [ ] Chrome (Android) version XX
  • [ ] Chrome (iOS) version XX
  • [x] Firefox version XX
  • [ ] Safari (desktop) version XX
  • [ ] Safari (iOS) version XX
  • [ ] IE version XX
  • [ ] Edge version XX

ArmandoPerdomo avatar Mar 22 '19 20:03 ArmandoPerdomo

Hey @ArmandoPerdomo you could give the RC of 7.1.0 a try, which has this build in.

neroniaky avatar Mar 31 '19 16:03 neroniaky

Hey @ArmandoPerdomo you could give the RC of 7.1.0 a try, which has this build in.

I tried, but you have added this feature yet?

ArmandoPerdomo avatar Jul 28 '19 16:07 ArmandoPerdomo