Skip to content

Commit 25f25c4

Browse files
committed
added logging
1 parent e49b9cd commit 25f25c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/pages/post-message.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export async function POST(context: APIContext) {
3030

3131
// get user email from JWT
3232
const oidcDataToken = context.request.headers.get('x-amzn-oidc-data') || '';
33+
console.log('OIDC data token present:', !!oidcDataToken, 'length:', oidcDataToken.length);
3334
const { email: userEmail } = await parseAuthToken(oidcDataToken);
35+
console.log('Parsed email from token:', userEmail);
3436

3537
if (!userEmail) {
3638
console.error('No user email found in token');

0 commit comments

Comments
 (0)