Skip to content

Commit

Permalink
Fix signout in admin web app. (#439)
Browse files Browse the repository at this point in the history
This commit also includes a large-scale cleanup of unnecessary JS in the
admin web app, deleting files that are unused in an effort to simplify
the JS application.

Fixes #432

Co-authored-by: PoeppingT <[email protected]>
Co-authored-by: brtrvn <[email protected]>
  • Loading branch information
3 people authored Nov 30, 2022
1 parent c01ca28 commit e425b07
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 1,827 deletions.
4 changes: 3 additions & 1 deletion client/web/src/AppWithAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const AppWithAuth = () => {
try {
const signOutReason = `Session closed due to ${minutes} minutes of inactivity.`
setSignOutReason(signOutReason)
return auth.removeUser()
await auth.signoutRedirect()
await auth.removeUser()
return removeUserInfo()
} catch (e) {
// do nothing
}
Expand Down
49 changes: 0 additions & 49 deletions client/web/src/blueprints/DefaultLayout/DefaultFooter.js

This file was deleted.

70 changes: 0 additions & 70 deletions client/web/src/blueprints/DefaultLayout/DefaultHeader.js

This file was deleted.

192 changes: 0 additions & 192 deletions client/web/src/blueprints/DefaultLayout/DefaultLayout.js

This file was deleted.

19 changes: 0 additions & 19 deletions client/web/src/blueprints/DefaultLayout/index.js

This file was deleted.

Loading

0 comments on commit e425b07

Please sign in to comment.