fix: convention
This commit is contained in:
parent
c2f1316f79
commit
f1f16905df
|
@ -0,0 +1,9 @@
|
|||
import Provider from "@pages/auth/sso/[provider]";
|
||||
import { withAppDir } from "app/AppDirSSRHOC";
|
||||
import { WithLayout } from "app/layoutHOC";
|
||||
|
||||
export default WithLayout({
|
||||
getLayout: null,
|
||||
Page: Provider,
|
||||
getData: withAppDir(getServerSideProps),
|
||||
})<"P">;
|
|
@ -0,0 +1,11 @@
|
|||
import DirectSSOLogin from "@pages/auth/sso/direct";
|
||||
import { WithLayout } from "app/layoutHOC";
|
||||
|
||||
import { getFuturePageProps } from "@server/lib/getFuturePageProps";
|
||||
import { getSSODirectData } from "@server/lib/ssoDirectGetData";
|
||||
|
||||
export default WithLayout({
|
||||
getLayout: null,
|
||||
Page: DirectSSOLogin,
|
||||
getData: (ctx) => getFuturePageProps(ctx, getSSODirectData),
|
||||
})<"P">;
|
|
@ -2,7 +2,7 @@ import VerifyPage from "@pages/auth/verify";
|
|||
import { withAppDir } from "app/AppDirSSRHOC";
|
||||
import { WithLayout } from "app/layoutHOC";
|
||||
|
||||
import { getServerSideProps } from "@server/lib/verify/getServerSideProps";
|
||||
import { getServerSideProps } from "@server/lib/auth/verify/getServerSideProps";
|
||||
|
||||
export default WithLayout({
|
||||
getLayout: null,
|
||||
|
|
|
@ -19,7 +19,7 @@ import { AlertTriangle, ExternalLink, MailOpen } from "@calcom/ui/components/ico
|
|||
import Loader from "@components/Loader";
|
||||
import PageWrapper from "@components/PageWrapper";
|
||||
|
||||
import { getServerSideProps } from "@server/lib/verify/getServerSideProps";
|
||||
import { getServerSideProps } from "@server/lib/auth/verify/getServerSideProps";
|
||||
|
||||
async function sendVerificationLogin(email: string, username: string) {
|
||||
await signIn("email", {
|
||||
|
|
Loading…
Reference in New Issue
Block a user