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

UserSignedIn Returns '401 Unauthorized'

Open masscreation opened this issue 4 years ago • 0 comments

I'm submitting a...

  • [x] Regression (a behavior that used to work and stopped working in a new release)
  • [x] Bug report

Current behavior

Sign in is successful, AngularTokenService.userSignedIn() returns '401 Unauthorized'. CanActivate [AngularTokenService] returns nothing.

Expected behavior

I'm expecting token validation, given sign in was successful.

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

I'm restricting a component using CanActivate. I'm want to access this restricted component.

Environment

Angular-Token version: 7.0.1 Angular version: 10.0.0

Bundler

  • [x] Angular CLI (Webpack)

Browser:

  • [x] Chrome (MacOS Mojave) version 90.0.4430.212

masscreation avatar May 16 '21 19:05 masscreation