30 lines
764 B
TypeScript
30 lines
764 B
TypeScript
import ThirdParty, { Google, Github } from "supertokens-auth-react/recipe/thirdparty";
|
|
import EmailPassword from "supertokens-auth-react/recipe/emailpassword";
|
|
import Session from "supertokens-auth-react/recipe/session";
|
|
|
|
export const frontendConfig = () => {
|
|
const appUrl = process.env.NEXT_PUBLIC_APP_URL || "https://app.vibnai.com";
|
|
|
|
return {
|
|
appInfo: {
|
|
appName: "Vib'n",
|
|
apiDomain: appUrl,
|
|
websiteDomain: appUrl,
|
|
apiBasePath: "/api/auth",
|
|
websiteBasePath: "/auth",
|
|
},
|
|
recipeList: [
|
|
ThirdParty.init({
|
|
signInAndUpFeature: {
|
|
providers: [
|
|
Google.init(),
|
|
Github.init(),
|
|
],
|
|
},
|
|
}),
|
|
EmailPassword.init(),
|
|
Session.init(),
|
|
],
|
|
};
|
|
};
|