tokenGetter does not support Promise
jakubnavratil opened this issue · 2 comments
jakubnavratil commented
Description
While JWT_OPTIONS supports passing tokenGetter
as function returning Promise, service does not work with that.
frederikprijck commented
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.
frederikprijck commented
👋 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.