mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 13:24:20 +12:00
739a544651
It's pretty bare-bones at the moment, but does close #476 by mentioning that `bcrypt_elixir` can be tweaked for faster tests
14 lines
442 B
Markdown
14 lines
442 B
Markdown
# Testing
|
|
|
|
Tips and tricks to help test your apps.
|
|
|
|
## When using the Password strategy
|
|
|
|
AshAuthentication uses `bcrypt_elixir` for hashing passwords for secure storage, which by design has a high computational cost. To reduce the cost (make hashing faster), you can reduce the number of computation rounds it performs in tests:
|
|
|
|
```elixir
|
|
# in config/test.exs
|
|
|
|
# Do NOT set this value for production
|
|
config :bcrypt_elixir, log_rounds: 1
|
|
```
|