Blog Post: Phoenix auth in 2024: password and provider based auth with phx.gen.auth

This guide uses :rand.bytes/1 to generate a password.

not cryptographically strong

The auto-generated code they are discussing uses :crypto.strong_random_bytes, just like the erlang docs recommend.

It is easily changed, but this is meant to be an auth guide.

3 Likes