fix clerk auth sign in with provider

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-19 22:41:45 +02:00
parent 43f9cf08b5
commit 438b70e930
4 changed files with 84 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
},
"dependencies": {
"@baselime/node-opentelemetry": "^0.5.8",
"@clerk/nextjs": "^5.0.2",
"@clerk/nextjs": "^5.0.12",
"@clickhouse/client": "^0.2.9",
"@hookform/resolvers": "^3.3.4",
"@openpanel/common": "workspace:^",

View File

@@ -3,12 +3,7 @@ import { AuthenticateWithRedirectCallback } from '@clerk/nextjs';
export const dynamic = 'force-dynamic';
const SSOCallback = () => {
return (
<AuthenticateWithRedirectCallback
signInUrl="/login"
signUpUrl="/register"
/>
);
return <AuthenticateWithRedirectCallback />;
};
export default SSOCallback;

View File

@@ -8,6 +8,7 @@ const isPublicRoute = createRouteMatcher([
'/api/clerk/(.*)?',
'/login',
'/register',
'/sso-callback(.*)?',
]);
export default clerkMiddleware(