mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 01:44:53 +10:00
v5.1.0 (#2970)
* chore(release): v5.1.0 * feat: implement resume thumbnails * fix: remove unused mcp tools * docs: fix formatting of docs
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import type { AuthSession } from "./types";
|
||||
import { getRequestHeaders } from "@tanstack/react-start/server";
|
||||
import { auth } from "./config";
|
||||
|
||||
export async function getSession(): Promise<AuthSession | null> {
|
||||
const result = await auth.api.getSession({ headers: getRequestHeaders() });
|
||||
return result as AuthSession | null;
|
||||
}
|
||||
Reference in New Issue
Block a user