auth0/angular2-jwt

tokenGetter does not support Promise

jakubnavratil opened this issue · 2 comments

Description

While JWT_OPTIONS supports passing tokenGetter as function returning Promise, service does not work with that.

Thanks for reporting, it does look like the JwtHelperService does not account for the tokenGetter to return a promise.

I will look into this and see how we can resolve this.

👋 I opened a draft PR, would you be able to have a look and see if that would work for you?

I will be adding some more tests before merging that PR tho, as the SDK lacks alot of tests and I want to ensure we limit chances of breaking people with changes like this.