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:
+1
-1
@@ -5,7 +5,7 @@ import Page from "~/auth/oauth2/authorize-view";
|
||||
|
||||
export const generateMetadata = async () => {
|
||||
return await _generateMetadata(
|
||||
() => "Authorize",
|
||||
(t) => t("authorize"),
|
||||
() => ""
|
||||
);
|
||||
};
|
||||
+1
-1
@@ -5,7 +5,7 @@ import Page from "~/auth/platform/authorize-view";
|
||||
|
||||
export const generateMetadata = async () => {
|
||||
return await _generateMetadata(
|
||||
() => "Authorize",
|
||||
(t) => t("authorize"),
|
||||
() => ""
|
||||
);
|
||||
};
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
@@ -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 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user