Increasing toked expiration time. #53
-
Hello, From what I understand the expiration time is given by the following function, and it is 3600 right now :
How can i have the token last longer (so that users don't have to log in every hour) ? P.S. other question: what exactly does secure = True ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @arminvburren 👋 The expiry time is embedded in the token itself (it's a JWT). It means that you can't increase the lifetime of the token. What we do here is to make the cookie expires at the same time as the token itself. Currently, it's not possible to change the lifetime of the access token, but it's something that we may add in the future. That said, Fief stores a user session on its side, so if you redirect a user to the Fief login page, their session will be recognized and they will be automatically redirected and authenticated without having to do anything. As for the |
Beta Was this translation helpful? Give feedback.
-
Hello @frankie567 could you have a look at this issue and give some first steps of implementing an increase of user login time (or adding the functionality in the dashboard) ? This is the biggest obstacle for developping my website with your tool, since some early users have started complaining about it. Also I am not the only one to talk about since there's @jhamman, and honestly it seem like a quite important feature for your project. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello there 👋 With the latest release, you can customize access token, refresh token and authorization code lifetimes per client. |
Beta Was this translation helpful? Give feedback.
Hello there 👋
With the latest release, you can customize access token, refresh token and authorization code lifetimes per client.