← Back to Discord Forum

Trouble getting auth with `.auth/user.json` to work

Reinier-Carewellposted in #help-playwright
Open in Discord

Hi there!

I'm following the docs for API base authentication, however a user.json file is neither created, nor (when manually created) filled with anything after going through the auth.setup.ts file.

If I log the request (and result) it all looks fine, but nothing seems to actually get stored?


This thread is trying to answer question "Why is the `user.json` file not being created or filled after going through the `auth.setup.ts` file?"

2 replies

Also the setup seems to be executing just fine


I got some stuff working, I think this can be closed for npw

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.