Skip to content

← All questions

record --user stops with: auth.strategy "custom" needs an auth export

Asked 6,820 views2 answers

Our login is bespoke, so the project yaml says:

yaml
auth:
  strategy: custom
  storageState: true

And every recording with a role stops immediately:

text
✖ CONFIG_INVALID: auth.strategy "custom" needs an `auth` export in projects/demo-shop/steps/auth.ts.
  hint: export const auth = defineAuth({ strategy: 'custom', login: async ({ page, user }) => { ... } })

The file is right there. What is it actually looking for?

asked by Sunita Kale982 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related