mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-22 17:02:01 +00:00
- Modified the dev script in package.json to use turbopack for improved development performance. - Enhanced AppSidebar by adding new icons for navigation items, improving visual clarity. - Introduced a new Textarea component for consistent styling and functionality across forms. - Added auth-utils module to fetch the current user session, streamlining user authentication processes.
11 lines
230 B
TypeScript
11 lines
230 B
TypeScript
"use server";
|
|
import { headers } from "next/headers";
|
|
import { auth } from "./auth";
|
|
|
|
export async function getCurrentUser() {
|
|
const session = await auth.api.getSession({
|
|
headers: await headers(),
|
|
});
|
|
return session?.user;
|
|
}
|