fp/services/next/app/logto.ts

11 lines
380 B
TypeScript

import { LogtoNextConfig } from "@logto/next";
import { configs } from "./config/configs";
export const logtoConfig: LogtoNextConfig = {
endpoint: 'https://logto.fp.sbtp.xyz/',
appId: configs.logtoAppId,
appSecret: configs.logtoAppSecret,
baseUrl: configs.websiteDomain,
cookieSecret: configs.logtoCookieSecret,
cookieSecure: process.env.NODE_ENV === 'production',
};