1 min readFeb 18, 2020
For anyone who is still struggling with this, here’s how the Logout would work:
handleLogout(e) {e.preventDefault();let that = thislet email = this.props.currentUseraxios.delete(‘/users/sign_out’, {params: {user: {email: email}}}).then(function(response){that.props.changePage(“login”)}).catch(function(error){console.log(error)})}