Open TimKochDev opened 1 month ago
Thanks for the report - this is a great suggestion that would improve usability of testing tokens!
We've created an internal ticket to track this, though this depends on a few key infrastructure changes that we were planning to perform. We'll let follow up here when this is fixed.
Preliminary Checks
Reproduction
https://github.com/TimKochDev/clerk-playwright-msw
Publishable key
pk_test_bWFqb3ItaGVyb24tODYuY2xlcmsuYWNjb3VudHMuZGV2JA
Description
Steps to reproduce:
Expected behavior:
I'd expect to receive a 400 error or 403.
Actual behavior:
I received 429 "bot detection" errors as if I hadn't added the testing token in the first place.
Consequence: I tried to test clerk using playwright and msw. This didn't work with @clerk/testing/playwright because page.route() is not compatible with using msw at the same time. I struggled for hours before realizing that I had long achieved my goal but I still received the same 429 error. This made me think I would still had bugs in my request interception logic while all I had to do was use a fresh testing token.
Environment