# questions about wixMembersFrontend.authentication.login

**URL:** <https://forum.wixstudio.com/t/questions-about-wixmembersfrontend-authentication-login/72579>\
**Category:** Ask the community\
**Tags:** wix-members-frontend, wix-members-area, question, code\
**Created:** [August 4, 2025, 3:28pm UTC](https://forum.wixstudio.com/t/questions-about-wixmembersfrontend-authentication-login/72579 "2025-08-04T15:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![718e5518ee2052a61478](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/718e5518ee2052a61478/32/105578_2.png) [@718e5518ee2052a61478](https://forum.wixstudio.com/u/718e5518ee2052a61478)\
**Post date:** [August 4, 2025, 3:28pm UTC](https://forum.wixstudio.com/t/questions-about-wixmembersfrontend-authentication-login/72579/1 "2025-08-04T15:28:38Z")

</div>

We currently have a problem with the session. When using [wixMembersFrontend.authentication.login](https://dev.wix.com/docs/velo/apis/wix-members-frontend/authentication/login), it creates a session; after that, with the ‘jsonwebtoken’ library, we create a token for our API session. When the API session expires, our app fails, so the user has to log in again.

That’s our current problem with the session, now the questions:

- How long does the session last when using [wixMembersFrontend.authentication.login](https://dev.wix.com/docs/velo/apis/wix-members-frontend/authentication/login)?

- Is it possible to maintain a single session?

- Is it possible to apply the expiration time of the token generated with jsonwebtoken to the session created by [wixMembersFrontend.authentication.login](https://dev.wix.com/docs/velo/apis/wix-members-frontend/authentication/login)?

- Is it possible to implement a refresh token?

I thank you in advance for your response.
