mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-04-30 18:59:37 +00:00
Removed Liveblocks and Updated Clerk Components
This commit is contained in:
parent
19c1eaf60f
commit
a25d2bf951
6 changed files with 2 additions and 140 deletions
|
@ -51,7 +51,6 @@ export const Navbar = () => {
|
|||
}}
|
||||
/>
|
||||
<UserButton
|
||||
afterSignOutUrl='/'
|
||||
appearance={{
|
||||
elements: {
|
||||
avatarBox: {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { QueryProvider } from '@/components/providers/query-provider';
|
|||
|
||||
const PlatformLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
return (
|
||||
<ClerkProvider>
|
||||
<ClerkProvider afterSignOutUrl='/'>
|
||||
<QueryProvider>
|
||||
<Toaster />
|
||||
<ModalProvider />
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/* import { Liveblocks } from '@liveblocks/node';
|
||||
import { useUser } from '@clerk/nextjs';
|
||||
import { auth } from '@clerk/nextjs/server';
|
||||
|
||||
const liveblocks = new Liveblocks({
|
||||
secret: process.env.LIVEBLOCKS_SECRET_DEV_API_KEY!,
|
||||
}); */
|
||||
|
||||
export async function POST(req: Request) {
|
||||
/* const { user } = useUser();
|
||||
const { orgId } = auth();
|
||||
|
||||
if (!orgId || !user) return new Response('Unauthorized', { status: 401 });
|
||||
|
||||
// Start an auth session inside your endpoint
|
||||
const session = liveblocks.prepareSession(user.id);
|
||||
|
||||
// Implement your own security, and give the user access to the room
|
||||
const { room } = await req.json();
|
||||
if (room) {
|
||||
session.allow(room, session.FULL_ACCESS);
|
||||
}
|
||||
|
||||
// Authorize the user and return the result
|
||||
const { status, body } = await session.authorize();
|
||||
return new Response(body, { status }); */
|
||||
return new Response('Not implemented', { status: 501 });
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue