Skip to content

Commit

Permalink
chore: debug success on auth
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed May 22, 2024
1 parent 9fec05f commit 8f3b879
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/unlighthouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export async function createUnlighthouse(userConfig: UserConfig, provider?: Prov
return {}
})
const cookies = await taskCtx.page.cookies()
logger.debug('Authentication completed', { cookies, localStorageData, sessionStorageData, indexedDb })
// merge this into the config
// @ts-expect-error untyped
ctx.resolvedConfig.cookies = [...(ctx.resolvedConfig.cookies || []), ...cookies as any as ResolvedUserConfig['cookies']]
Expand Down

0 comments on commit 8f3b879

Please sign in to comment.