Some cleanups, added logout hook
This commit is contained in:
@@ -4,6 +4,7 @@ import AppRouter from "./routes";
|
||||
import SuperTokens from "supertokens-web-js";
|
||||
import EmailPass from "supertokens-web-js/recipe/emailpassword";
|
||||
import Session from "supertokens-web-js/recipe/session";
|
||||
import AuthProvider from "./context/AuthContext";
|
||||
|
||||
SuperTokens.init({
|
||||
appInfo: {
|
||||
@@ -11,14 +12,15 @@ SuperTokens.init({
|
||||
apiBasePath: "/auth/api",
|
||||
appName: "Fluxem",
|
||||
},
|
||||
recipeList: [
|
||||
EmailPass.init(),
|
||||
Session.init(),
|
||||
],
|
||||
recipeList: [EmailPass.init(), Session.init()],
|
||||
});
|
||||
|
||||
const App: Component = () => {
|
||||
return <AppRouter />;
|
||||
return (
|
||||
<AuthProvider>
|
||||
<AppRouter />
|
||||
</AuthProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user