Hello,
I was migrating from a previous version of angular-auth-oidc-client (10.0.15) to the latest (11.0.0) following the migration guide and I noticed the following:
The migration guide does not specify that when loading config from a HTTP endpoint, the method should return a promise:
In the samples, we can see how this is correct and working:
I was attempting to make it work without returning a promise and I couldn't...
I think migration docs should be updated to reflect this.
Hey @piraces , thanks for that hint, nice catch. Yes, the toPromise() was missing. Just as a side note: If you are using it without using http in front you can use the withConfig directly as it returns a promise already.
Most helpful comment
Hey @piraces , thanks for that hint, nice catch. Yes, the
toPromise()was missing. Just as a side note: If you are using it without using http in front you can use the withConfig directly as it returns a promise already.