traewelldroid icon indicating copy to clipboard operation
traewelldroid copied to clipboard

Auto refresh token

Open jheubuch opened this issue 1 year ago • 4 comments

Refresh access token automatically if valid less than 1 week

jheubuch avatar Aug 08 '24 09:08 jheubuch

Maybe increase the time a bit if a user doesn't open the app for a week to prevent logging out?

MrKrisKrisu avatar Aug 08 '24 10:08 MrKrisKrisu

Mhm, can the token be refreshed if the old access token is expired? 🤔

jheubuch avatar Aug 08 '24 10:08 jheubuch

No.

MrKrisKrisu avatar Aug 08 '24 10:08 MrKrisKrisu

https://github.com/Traewelling/traewelling/discussions/2809

Then the validity time of the tokens should not be less then a month imo :D

jheubuch avatar Aug 08 '24 11:08 jheubuch

No.

To clarify this again based on the current status:

Yes, it is possible. The main thing is that the refresh token is valid.

According to the current proposal (see https://github.com/Traewelling/traewelling/discussions/2809), 30 minutes for the access token and 30 days for the refresh token.

MrKrisKrisu avatar Sep 09 '25 12:09 MrKrisKrisu