* Separate environment configs * wip * wip * test * plugins * test * test * .sequelizerc, unfortunately can't go through /utils/environment due to not supporting TS * docker-compose -> docker compose * fix: .local wipes .development * Add custom validation message for invalid SECRET_KEY (often confused)
12 lines
255 B
TypeScript
12 lines
255 B
TypeScript
import * as React from "react";
|
|
import { Redirect } from "react-router-dom";
|
|
import useStores from "~/hooks/useStores";
|
|
|
|
const Logout = () => {
|
|
const { auth } = useStores();
|
|
void auth.logout();
|
|
return <Redirect to="/" />;
|
|
};
|
|
|
|
export default Logout;
|