fp/services/next/app/logto.ts

11 lines
380 B
TypeScript
Raw Normal View History

2024-11-05 19:48:21 +00:00
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',
};