Automate issuer overlay creation from ticker searches
This commit is contained in:
@@ -2,7 +2,7 @@ import { headers } from 'next/headers';
|
||||
import { auth } from '@/lib/auth';
|
||||
import { asErrorMessage, jsonError } from '@/lib/server/http';
|
||||
|
||||
export type AuthenticatedSession = NonNullable<
|
||||
type AuthenticatedSession = NonNullable<
|
||||
Awaited<ReturnType<typeof auth.api.getSession>>
|
||||
>;
|
||||
|
||||
@@ -17,7 +17,7 @@ type RequiredSessionResult = (
|
||||
}
|
||||
);
|
||||
|
||||
export async function getAuthenticatedSession() {
|
||||
async function getAuthenticatedSession() {
|
||||
const session = await auth.api.getSession({
|
||||
headers: await headers()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user