bjerkio/oidc-react

automaticSilentRenew defaults to true, not false

jamesdh opened this issue · 0 comments

AuthProviderProps indicates that `automaticSilentRenew defaults to false:

/**
* Flag to indicate if there should be an automatic attempt to renew the access token prior to its expiration.
*
* defaults to false
*/
automaticSilentRenew?: boolean;

But in the event that it is undefined in the user supplied config (which is likely the case), then it actually defaults to true via UserManagerSettings.ts#L51-L52

In any case, defaulting to true is probably the correct behavior, so the interface docs just need to be updated.