Auth2 token expiration time

19 views
Skip to first unread message

Leonardo Carvalho

unread,
Oct 24, 2022, 4:10:03 PM10/24/22
to Fusio
Hi,

I would like to know if it is possible to reduce the expiration time of the Auth2 access token which is in milliseconds?Captura de tela de 2022-10-24 16-02-27.png

Christoph Kappestein

unread,
Oct 24, 2022, 4:51:17 PM10/24/22
to Fusio
Hi,

yes this is easy possible, in your configuration.php you can adjust the "fusio_expire_token" setting, by default it is "P2D" which means, that the token expires in 2 days. You can adjust this to i.e. "P1D" for one day or "PT6H" for 6 hours,
the "expires_in" time is a UNIX timestamp in seconds.

best regards
Christoph

Leonardo Carvalho

unread,
Oct 25, 2022, 7:51:48 AM10/25/22
to Fusio
THANKS!
Reply all
Reply to author
Forward
0 new messages