okta-react icon indicating copy to clipboard operation
okta-react copied to clipboard

Add support for auto renew configuration used by okta-auth-js

Open jlbaez opened this issue 6 years ago • 1 comments

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:

jlbaez avatar Jan 30 '19 15:01 jlbaez

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?

swiftone avatar Feb 01 '19 23:02 swiftone