* migrate auth/forgot-password/*, auth/login, auth/logout * revert * fix forgot password * fix folder structure * fix logout * fix middleware * remove TODO log * refactor logout
22 lines
698 B
TypeScript
22 lines
698 B
TypeScript
import { withAppDirSsr } from "app/WithAppDirSsr";
|
|
import { _generateMetadata } from "app/_utils";
|
|
import { WithLayout } from "app/layoutHOC";
|
|
|
|
import { getServerSidePropsAppDir } from "@server/lib/auth/forgot-password/getServerSideProps";
|
|
|
|
import type { PageProps } from "~/auth/forgot-password/forgot-password-view";
|
|
import ForgotPassword from "~/auth/forgot-password/forgot-password-view";
|
|
|
|
export const generateMetadata = async () => {
|
|
return await _generateMetadata(
|
|
(t) => t("forgot_password"),
|
|
(t) => t("request_password_reset")
|
|
);
|
|
};
|
|
|
|
export default WithLayout({
|
|
getLayout: null,
|
|
Page: ForgotPassword,
|
|
getData: withAppDirSsr<PageProps>(getServerSidePropsAppDir),
|
|
})<"P">;
|