feat(domain): complete phase 2 backend core
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import "server-only";
|
||||
|
||||
import type { DomainActor } from "../domain/actor";
|
||||
import type { SessionContext } from "./session";
|
||||
|
||||
export function domainActorFromSession(context: SessionContext): DomainActor {
|
||||
return {
|
||||
authUserId: context.user.id,
|
||||
role: context.profile.role,
|
||||
clientId: context.profile.clientId,
|
||||
disabled: context.profile.disabled,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user