We currently have a problem with the session. When using wixMembersFrontend.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?
-
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?
-
Is it possible to implement a refresh token?
I thank you in advance for your response.