Skip to content

Commit 3cf3a4b

Browse files
committed
feat: fix oidc
1 parent 43aa75b commit 3cf3a4b

File tree

1 file changed

+2
-3
lines changed
  • apps/frontend/src/app/(app)/auth

1 file changed

+2
-3
lines changed

apps/frontend/src/app/(app)/auth/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ export const metadata: Metadata = {
1010
title: `${isGeneralServerSide() ? 'Postiz' : 'Gitroom'} Register`,
1111
description: '',
1212
};
13-
export default async function Auth() {
13+
export default async function Auth(params: {searchParams: {provider: string}}) {
1414
const t = await getT();
15-
1615
if (process.env.DISABLE_REGISTRATION) {
1716
const canRegister = (
1817
await (await internalFetch('/auth/can-register')).json()
1918
).register;
20-
if (!canRegister) {
19+
if (!canRegister && !params?.searchParams?.provider) {
2120
return (
2221
<>
2322
<LoginWithOidc />

0 commit comments

Comments
 (0)