Skip to content

2.4.16

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Feb 16:01
d023992
V2 fix 538 (#540)

* feat: add new env variable : REACT_APP_NO_ACTIVITY_TIMEOUT with default value 900 sec

* feat: logout user when no activity is detected after timeout

* build: bumb version to 2.4.16

* chore: remove useless env var and read tokenExpirationTime in token

* feat: avoid logout et decodeJwtToken when auth isn't enabled

* fix: acces token

* chore: create external hook

* chore: clear env file

* chore: refactor listenActivity to add listener

* chore: make sure that useAutoLogout is used inside authenticated component

* chore: move useAutoLogout

* build: bumb oidc-spa package

* chore: simplify logic

* fix: getTokens is not a function

* fix: expirationTime is already in ms