grumar / adal-angular5

Angular 5 ADAL Wrapper
MIT License
12 stars 19 forks source link

Multiple issues in Version 2.1.1 #51

Open mausumit opened 5 years ago

mausumit commented 5 years ago

Hi,

I am also facing some issue with v2.1.1.

1.The app loads 2-3 times. After that I see two errors in console

  1. ERROR TypeError: Cannot read property '4730d8bd-c126-49b3-9714-e7c2c3f56b09|427757c9-9aeb-488c-b149-db1d54c2c3c4' of undefined at Adal5Service.push../node_modules/adal-angular5/esm5/adal-angular5.js.Adal5Service.handleWindowCallback (adal-angular5.js:77)

  2. ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'access_token' Error: Cannot match any routes. URL Segment: 'access_token'.

Now if I reload the page, the erros are gone.

  1. I am using a version 2.1.1. In node_modules\adal-angular5\esm5\adal-angular5.js the Observable is imported as "import { Observable as Observable$1 } from 'rxjs/Rx';" but in function below 'Observable ' is used instead of 'Observable$1) which is throwing error.

  2. In sendRequest method, the token is appended twice and API authorization is failed.

mausumit commented 5 years ago

@grumar Can you please help me out in fixing these?