Jacksuyu's picture
Add OIDC auth, developer profiles, work votes, and solution workflow
d438808
Raw History Blame Contribute Delete
278 Bytes
import { auth } from "@/auth";
import { getAnonId } from "@/lib/identity";
export async function getActor() {
const session = await auth();
const anonId = await getAnonId();
return {
session,
userId: session?.user?.id ?? null,
anonId: anonId || null,
};
}