Really logging out now.
This commit is contained in:
1 parent
5858ec1624
commit
67c1dba5d8
1 file changed
+3
-1
@@ -1,9 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import {Redirect} from 'react-router';
|
||||
import {auth} from '../App';
|
||||
|
||||
class Logout extends Component {
|
||||
render() {
|
||||
window.localStorage.removeItem("user");
|
||||
//window.localStorage.removeItem("user");
|
||||
auth.logout();
|
||||
|
||||
return <Redirect to='/' />
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user