mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-11 22:14:17 +00:00
12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
import "server-only";
|
|
|
|
import { auth } from "@/auth.config";
|
|
|
|
import { getRequiredAuthHeaders } from "./server-auth";
|
|
|
|
export const getAuthHeaders = async (options?: { contentType?: boolean }) => {
|
|
const session = await auth();
|
|
|
|
return getRequiredAuthHeaders(session?.accessToken, options, session?.error);
|
|
};
|