Closed onkarkore closed 1 year ago
You don't have to worry about the two questions you asked. By using the Vue SDK, it automatically cached issued access token in local storage, and read it first from the local storage when you call getAccessToken()
.
Also, it automatically re-generates a new access token if the cached one is expired.
Therefore, the only thing you need to do is calling the no-brainer function getAccessToken()
We are currently doing POC to use logto for managing login. Our application is written in Vue3. I am able to do login and register integration successfully.
An approach that we are following (please correct if anything is missing):
isAutheticated
function to manage logged vs non logged in behaviorQuestions on the approach:
logto:<applicationId>:idToken