We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4eccf7 commit 1c5ca00Copy full SHA for 1c5ca00
src/app/api/get-name/route.ts
@@ -2,7 +2,7 @@ import { authkit } from "@workos-inc/authkit-nextjs";
2
import { NextRequest, NextResponse } from "next/server";
3
4
export const GET = async (request: NextRequest) => {
5
- // Use 'getSession' for edge functions that don't have access to headers
+ // Use 'authkit' for edge functions that don't have access to headers
6
const { session } = await authkit(request);
7
8
if (!session || !session.user) {
0 commit comments