Is it possible to work around AshAuthentication tokens with read only connection?

Hey everyone! 👋 I'm working with Ash Authentication using Google OAuth and Magic Link strategies. Sometimes we want to test with production data, but we connect via a read-only database for safety. The problem is that Magic Link token generation requires writes, which obviously fails on the read-only connection. Has anyone encountered this before? Is there any clever ways to handle token persistence or Magic Link auth while using a read-only connection for testing? Appreciate any insights! 🙏
1 Reply
jart
jart2w ago
If you disable store_all_tokens you should be good because then it only stores a record if a token is revoked.

Did you find this page helpful?