File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
BankApplicationFrontend/src/components/NavigationBar Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Link, Redirect } from 'react-router-dom'
3
3
import { connect } from 'react-redux'
4
4
import { Navbar , Nav , NavItem } from 'react-bootstrap'
5
5
import { showDialog , logout } from '../../actions'
6
- import { LSKEY_USERNAME , LSKEY_TOKEN } from '../../config/constants'
6
+ import { LSKEY_USERNAME , LSKEY_TOKEN , LSKEY_TOKEN_EXPIRATIONTIME } from '../../config/constants'
7
7
8
8
const mapStateToProps = state => ( {
9
9
loggedInUsername : state . login != null ? state . login . username : null
@@ -36,6 +36,7 @@ class NavBarTop extends React.Component {
36
36
onLoggedOut ( ) {
37
37
localStorage . removeItem ( LSKEY_USERNAME ) ;
38
38
localStorage . removeItem ( LSKEY_TOKEN ) ;
39
+ localStorage . removeItem ( LSKEY_TOKEN_EXPIRATIONTIME ) ;
39
40
this . props . logout ( ) ;
40
41
this . setState ( { hasJustLoggedOut : true } ) ;
41
42
}
You can’t perform that action at this time.
0 commit comments