Reputation: 63
I am trying to do a lighthouse audit of my angular . My app uses jwt
based authentication and I store the token in the localStorage
.
I first login through the app and then start the lighthouse audit. But when the audit run starts the session is completely lost and the report is created based on the login page.
I have tried to open the browser using
ng serve --open
and then running lighthouse audit but, it still didn't worked
How to do a lighthouse audit after authentication ?
Upvotes: 1
Views: 629
Reputation: 1331
You have to uncheck Clear storage
:
https://github.com/GoogleChrome/lighthouse/blob/master/docs/authenticated-pages.md
Upvotes: 1