Fontend supertokens, authprovider.
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
import type { Component } from "solid-js";
|
||||
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";
|
||||
|
||||
SuperTokens.init({
|
||||
appInfo: {
|
||||
apiDomain: "http://localhost:3300",
|
||||
apiBasePath: "/auth/api",
|
||||
appName: "Fluxem",
|
||||
},
|
||||
recipeList: [EmailPass.init(), Session.init()],
|
||||
});
|
||||
|
||||
const App: Component = () => {
|
||||
return <AppRouter />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user