improvement: clear auth information from memory when logging out (#5316)
* clears authentications when logout is clicked * tests the headers sent in the network request * adds test for multiple api keys * refactors tests to extract common uses * correct test message description Co-authored-by: kyle shockey <kyleshockey@gmail.com>
This commit is contained in:
@@ -38,6 +38,11 @@ export default class Auths extends React.Component {
|
||||
return key
|
||||
}).toArray()
|
||||
|
||||
this.setState(auths.reduce((prev, auth) => {
|
||||
prev[auth] = ""
|
||||
return prev
|
||||
}, {}))
|
||||
|
||||
authActions.logout(auths)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user