okta-react
okta-react copied to clipboard
Add support for auto renew configuration used by okta-auth-js
I'm submitting this issue for the package(s):
- [ ] jwt-verifier
- [ ] okta-angular
- [ ] oidc-middleware
- [X ] okta-react
- [ ] okta-react-native
- [ ] okta-vue
I'm submitting a:
- [ ] Bug report
- [ X] Feature request
- [ ] Other (Describe below)
Current behavior
Currently there doesnt seem to be a way for okta-react to pass a tokenManager property from the config to the underlying OktaAuth constructor.
Expected behavior
The Auth constructor in okta-react should send tokenManager configurations to the OktaAuth constructor.
Extra information about the use case/user story you are trying to implement
It seems like the accessToken expires every 5 minutes. I would like to keep track of this by listening to the "expired" event. But this is never emitted because autoRenew is always true
Environment
- Package Version: 1.1.4
- Browser: Chrome
- OS: macOS High Sierra
- Node version (
node -v): v11.7.0 - Other:
Hi, thanks for the report! Can you clarify your use case a bit?
- Do you want to disable the autoRenew?
- If autoRenew is occuring, when would you expect "expired" to emit?
- if you can share, what is the motivation to record these events?