Files
hair-keeper/src/app/(auth)/login/page.tsx

24 lines
594 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { getIaaaClientConfig } from "@/server/service/iaaa"
import { LoginForm } from "./login-form"
export interface IaaaClientConfig {
enabled: boolean
appId: string
callbackPath: string
autoRedirect: boolean
/** 开发模式下未配置 IAAA需要显示配置提醒 */
showInDev: boolean
}
export default function LoginPage() {
const config = getIaaaClientConfig()
const isDev = process.env.NODE_ENV === 'development'
const iaaaConfig: IaaaClientConfig = {
...config,
showInDev: isDev && !config.enabled,
}
return <LoginForm iaaaConfig={iaaaConfig} />
}