cleaned up unnecessary ssr in sso signup routes
This commit is contained in:
parent
81b470a3b1
commit
3607ffef79
|
@ -8,8 +8,6 @@ import prisma from "@lib/prisma";
|
||||||
import { isSAMLLoginEnabled, hostedCal, samlTenantID, samlProductID, samlTenantProduct } from "@lib/saml";
|
import { isSAMLLoginEnabled, hostedCal, samlTenantID, samlProductID, samlTenantProduct } from "@lib/saml";
|
||||||
import { inferSSRProps } from "@lib/types/inferSSRProps";
|
import { inferSSRProps } from "@lib/types/inferSSRProps";
|
||||||
|
|
||||||
import { ssrInit } from "@server/lib/ssr";
|
|
||||||
|
|
||||||
export type SSOProviderPageProps = inferSSRProps<typeof getServerSideProps>;
|
export type SSOProviderPageProps = inferSSRProps<typeof getServerSideProps>;
|
||||||
|
|
||||||
export default function Type(props: SSOProviderPageProps) {
|
export default function Type(props: SSOProviderPageProps) {
|
||||||
|
@ -50,7 +48,6 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
const { req } = context;
|
const { req } = context;
|
||||||
|
|
||||||
const session = await getSession({ req });
|
const session = await getSession({ req });
|
||||||
const ssr = await ssrInit(context);
|
|
||||||
|
|
||||||
if (session) {
|
if (session) {
|
||||||
return {
|
return {
|
||||||
|
@ -91,7 +88,6 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
trpcState: ssr.dehydrate(),
|
|
||||||
provider: providerParam,
|
provider: providerParam,
|
||||||
isSAMLLoginEnabled,
|
isSAMLLoginEnabled,
|
||||||
hostedCal,
|
hostedCal,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user