pow-auth / pow

Robust, modular, and extendable user authentication system
https://powauth.com
MIT License
1.59k stars 153 forks source link

Use synchronous writes for backend cache #650

Closed danschultzer closed 3 years ago

danschultzer commented 3 years ago

This resolves the consistent issues with race condition seen in #635 #359 and others.

Though this may create a bottle neck, it seems more more ergonomic to ensure writes are complete. The writes: :async option can be set if this ever becomes an issue. This also conforms to the gen.phx.gen logic.