Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
fix: Update user header in GET request to use X-MS-CLIENT-PRINCIPAL-N…
Browse files Browse the repository at this point in the history
…AME (#47)
  • Loading branch information
ReinderVosDeWael authored May 30, 2024
1 parent ccc56ac commit ed550e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/user/+server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { json } from '@sveltejs/kit';

export async function GET({ request }) {
const user = request.headers.get('X-User');
const user = request.headers.get('X-MS-CLIENT-PRINCIPAL-NAME') || '[email protected]';
return json({ user });
}

0 comments on commit ed550e7

Please sign in to comment.