Skip to content

Commit f8d9406

Browse files
fix: restore withAgentAuthHeaders after View as identity clear
The previous change dropped the function declaration when inserting clearAgentRemoteUser, which broke the frontend parse. Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
1 parent 8957b41 commit f8d9406

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/api/agentClient.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export function clearAgentRemoteUser() {
3131
agentRemoteUser = null
3232
agentCsrfToken = null
3333
}
34+
35+
function withAgentAuthHeaders(headers = {}) {
3436
if (agentRemoteUser) {
3537
headers["X-Remote-User"] = agentRemoteUser;
3638
}

0 commit comments

Comments
 (0)