Skip to content

Commit 6cacccb

Browse files
kaposkecursoragent
andcommitted
fix(authz): update impersonation locals type
Keep the newly added impersonation handler compatible with optional environment request locals after rebasing onto master. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4c898fa commit 6cacccb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/server/lib/controllers/v1/admin/impersonate/postImpersonate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function challengeAdmin({
3939
adminUser,
4040
code
4141
}: {
42-
res: Response<PostImpersonate['Reply'], Required<RequestLocals>>;
42+
res: Response<PostImpersonate['Reply'], RequestLocals>;
4343
logCtx: LogContext;
4444
adminUser: DBUser;
4545
code: string | undefined;

0 commit comments

Comments
 (0)