Skip to content

Commit

Permalink
fix: me route
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Jul 25, 2023
1 parent 32a43ae commit b89f053
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/api/me/route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { NextResponse } from "next/server"
import requireAuth from "@/components/auth/require-auth"
import { requireAuthApi } from "@/components/auth/require-auth"

export async function GET() {
const session = await requireAuth()
const { session, error } = await requireAuthApi()
if (error) return error

return NextResponse.json({
session,
Expand Down

0 comments on commit b89f053

Please sign in to comment.