Home:ALL Converter>How to do lighthouse audit for a PWA which needs authentication

How to do lighthouse audit for a PWA which needs authentication

Ask Time:2019-04-30T18:34:39         Author:Sourav Moitra

Json Formatter

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 ?

Author:Sourav Moitra,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/55919103/how-to-do-lighthouse-audit-for-a-pwa-which-needs-authentication
yy