logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.72k stars 440 forks source link

feature request: Add the session duration setting of native app #6777

Open KnightJun opened 4 hours ago

KnightJun commented 4 hours ago

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 希望能能设置应用的会话有效时长,我可以设置会话永久有效

darcyYe commented 2 hours ago

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.