feat: Add /logout route for SLO support

This commit is contained in:
Tom Moor
2021-03-30 20:10:52 -07:00
parent 25023fb086
commit c5569bd365
3 changed files with 15 additions and 0 deletions

12
app/scenes/Logout.js Normal file
View File

@@ -0,0 +1,12 @@
// @flow
import * as React from "react";
import { Redirect } from "react-router-dom";
import useStores from "../hooks/useStores";
const Logout = () => {
const { auth } = useStores();
auth.logout();
return <Redirect to="/" />;
};
export default Logout;