You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an internal oidc issuer whose response time is less than performant. To accommodate them, I'd like to be able to configure the http timeout. If I leverage the openid-client package directly without using the sdk, I can do the following:
This doesn't work with the SDK, however, because the timeout is always overridden to 5000ms in client.js.
Describe the ideal solution
Depends. If you want to control the interface, you could expose a timeout option on the ConfigParams object. Otherwise the quick solution would be to just to check if the timeout if null / undefined just before you set it in client.js, and let consumers override default http options using the underlying open-id client package as shown above.
Alternatives and current work-arounds
Haven't considered alternatives. If the above sounds like a good idea let me know and I'll submit a PR.
Thanks!
The text was updated successfully, but these errors were encountered:
Describe the problem you'd like to have solved
We have an internal oidc issuer whose response time is less than performant. To accommodate them, I'd like to be able to configure the http timeout. If I leverage the
openid-client
package directly without using the sdk, I can do the following:This doesn't work with the SDK, however, because the timeout is always overridden to 5000ms in client.js.
Describe the ideal solution
Depends. If you want to control the interface, you could expose a
timeout
option on theConfigParams
object. Otherwise the quick solution would be to just to check if the timeout if null / undefined just before you set it in client.js, and let consumers override default http options using the underlying open-id client package as shown above.Alternatives and current work-arounds
Haven't considered alternatives. If the above sounds like a good idea let me know and I'll submit a PR.
Thanks!
The text was updated successfully, but these errors were encountered: