okta / okta-react

Okta OIDC SDK for React
https://github.com/okta/okta-react
Other
113 stars 78 forks source link

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

Open jlbaez opened 5 years ago

jlbaez commented 5 years ago

I'm submitting this issue for the package(s):

I'm submitting a:

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

swiftone commented 5 years ago

Hi, thanks for the report! Can you clarify your use case a bit?