chore: migrate low-risk 3 /auth pages to App Router (#18753)

* add i18n string

* Update config.matcher in middleware

* migrate auth/oauth2/authorize

* migrate auth/platform/authorize

* migrate auth/signin
This commit is contained in:
Benny Joo
2025-01-21 10:41:00 +01:00
committed by GitHub
parent 4f1d71e660
commit 0f7ecb3345
8 changed files with 6 additions and 30 deletions
@@ -5,7 +5,7 @@ import Page from "~/auth/oauth2/authorize-view";
export const generateMetadata = async () => {
return await _generateMetadata(
() => "Authorize",
(t) => t("authorize"),
() => ""
);
};
@@ -5,7 +5,7 @@ import Page from "~/auth/platform/authorize-view";
export const generateMetadata = async () => {
return await _generateMetadata(
() => "Authorize",
(t) => t("authorize"),
() => ""
);
};
+3
View File
@@ -168,6 +168,9 @@ export const config = {
"/login",
"/auth/login",
"/auth/error",
"/auth/signin",
"/auth/oauth2/authorize",
"/auth/platform/authorize",
/**
* Paths required by routingForms.handle
*/
-7
View File
@@ -1,7 +0,0 @@
import PageWrapper from "@components/PageWrapper";
import Authorize from "~/auth/oauth2/authorize-view";
const Page = () => <Authorize />;
Page.PageWrapper = PageWrapper;
export default Page;
@@ -1,7 +0,0 @@
import PageWrapper from "@components/PageWrapper";
import Authorize from "~/auth/platform/authorize-view";
const Page = () => <Authorize />;
Page.PageWrapper = PageWrapper;
export default Page;
-14
View File
@@ -1,14 +0,0 @@
import PageWrapper from "@components/PageWrapper";
import { getServerSideProps } from "@server/lib/auth/signin/getServerSideProps";
import type { PageProps } from "~/auth/signin-view";
import SignIn from "~/auth/signin-view";
const Page = (props: PageProps) => <SignIn {...props} />;
Page.PageWrapper = PageWrapper;
export default Page;
export { getServerSideProps };
@@ -2928,6 +2928,7 @@
"managed_users_description": "See all the managed users created by your OAuth client",
"select_oAuth_client": "Select Oauth Client",
"on_every_instance": "On every instance",
"authorize": "Authorize",
"next": "Next",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}