Buckets:
| import { auth } from "@clerk/nextjs"; | |
| import { NextResponse } from "next/server"; | |
| export async function GET(request: Request) { | |
| const { userId, sessionId } = auth(); | |
| if (!sessionId) { | |
| return NextResponse.json({ id: null }, { status: 401 }); | |
| } | |
| return NextResponse.json({ id: userId }, { status: 200 }); | |
| } | |
Xet Storage Details
- Size:
- 317 Bytes
- Xet hash:
- d0240ee173ee9ce9d59d06663fcd83024de47886ff7a1bfd3913f2ff2afbcad4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.