Skip to content

Commit

Permalink
chore: add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
studioTeaTwo committed Dec 4, 2023
1 parent f5450a7 commit 0251ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ export const handle: Handle = async ({ event, resolve }) => {
throw new Error(body.reason);
}
const challenge = res.headers.get('WWW-Authenticate');
console.log('header', challenge)
result = getToken(challenge);
console.log('new challenge ', result);
} catch (error) {
console.error('new challenge failed: ', error);
console.error('new challenge failed: ', error.message);
event.locals.l402 = {
status: 500,
isPaywall: true,
Expand Down

0 comments on commit 0251ee1

Please sign in to comment.