You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a native type app, and although the refresh token is set to be valid for 90 days, the session is only valid for 14 days, resulting in the user having to log in again after 14 days, which creates a bad experience because other apps are valid for a long time with a single login
我创建了一个原生类型的应用,虽然设置了refresh token有效时间为90天,但是会话的有效时间只有14天,导致14天后用户必须重新登录,这带来了不好的体验,因为其他app都是一次登录长久有效的
Describe what you'd like Logto to have
I wish I could set the length of time the app's session is valid, I can set the session to be permanent
希望能能设置应用的会话有效时长,我可以设置会话永久有效
The text was updated successfully, but these errors were encountered:
Could you please provide the setup of your auth system? So that we can try to reproduce this issue. By looking into the code, seems this should not happen.
I'm using version 1.20 of logto on a self-hosted server, the corresponding client is flutter, and I've set up a native app on the server to set the validity of the refresh token to 90 days
I noticed that when an account logs in, three pieces of data are created in the oidc_model_instances table of the logto database, namely Session, Grant, RefreshToken
The expires_at for RefreshToken is 90 days, but the expires_at for Session and Grant is 14 days, which will cause the client not to work after 14 days. I would like to know under what circumstances the expires_at of Session and Grant will be refreshed in the normal flow or how the expiration dates of Session and Grant are set? This will help me to troubleshoot the issue further, thanks!
You can check source code, and set proper lifespan for Grant and Session. Per our current design, the expires_at value of Grant or Session will not be prolonged automatically.
What problem did you meet?
I created a native type app, and although the refresh token is set to be valid for 90 days, the session is only valid for 14 days, resulting in the user having to log in again after 14 days, which creates a bad experience because other apps are valid for a long time with a single login
我创建了一个原生类型的应用,虽然设置了refresh token有效时间为90天,但是会话的有效时间只有14天,导致14天后用户必须重新登录,这带来了不好的体验,因为其他app都是一次登录长久有效的
Describe what you'd like Logto to have
I wish I could set the length of time the app's session is valid, I can set the session to be permanent
希望能能设置应用的会话有效时长,我可以设置会话永久有效
The text was updated successfully, but these errors were encountered: