mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-17 18:07:23 +02:00
11 lines
562 B
TypeScript
11 lines
562 B
TypeScript
export interface UserContext {
|
|
mode: "self-hosted" | "cloud";
|
|
// The EFFECTIVE namespace for this request: '' for self-hosted, and for cloud
|
|
// either the user's own 'users/{sub}/' or, for a team member, the shared team
|
|
// owner's 'users/{ownerId}/' — resolved server-side by the AuthGuard from the
|
|
// backend (never carried in the JWT). All key scoping uses this directly.
|
|
prefix: string;
|
|
profileLimit: number; // 0 for unlimited (self-hosted); effective (team) limit for team members
|
|
sub?: string; // the authenticated user id (cloud only)
|
|
}
|