You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.
user logout action that clears the user's uuid, auth token, token expiration from the browser's local local storage, and routes to a login or signin page
auto-login action that attempts to login the user using the auth data stored in the browser's local storage during the created lifecycle hook of App.vue. If the authentication has expired, then route to the proper page. Hopefully, this covers keeping the session after restarting and refreshing the browser.
dispatch another action to automatically get a new auth token per epic requirement using possibly setInterval(func, interval). This action can be possibly be dispatched within login action.
The text was updated successfully, but these errors were encountered:
Description
As a user, I want to maintain my authenticated session using my browsers local storage and history.
This task includes the following:
Reference: https://hwsc-org.github.io/wikis/app-gateway-svc/epics.html#getnewauthtoken
For this task, I would recommend the to do the following prior to starting this task.
Story Points
13
Definitions of Done
login
action that saves the current user's uuid, auth token, token expiration in browser'slocal storage
.router
The common pattern I have seen is something similar to the codes below:
logout
action that clears the user's uuid, auth token, token expiration from the browser's local local storage, and routes to alogin or signin page
auto-login
action that attempts to login the user using the auth data stored in the browser's local storage during thecreated
lifecycle hook ofApp.vue
. If the authentication has expired, then route to the proper page. Hopefully, this covers keeping the session after restarting and refreshing the browser.dispatch
another action to automatically get a new auth token per epic requirement using possiblysetInterval(func, interval)
. This action can be possibly be dispatched withinlogin
action.The text was updated successfully, but these errors were encountered: