How to implement user authentication in phoenix

I created a webapp in phoenix, I was wondering what might be the best way to implement user registration / authentication and session management in it.

In googling, I found these two libraries: addict and passport

But I'm not sure how stable these are and whether they are used somewhere in production. Please let me know if there are libraries that can be used in production, and if there are some examples of their implementation.

+6
source share
3 answers

The addict seems to be a more mature project and seems to be the one right now. To find good Elixir libraries, I always like to consult with the Awesome Elixir Github repo .

+9
source

I think at this moment it is easier to implement it yourself. This should not take long if you are comfortable with the elixir and learn the basics of the phoenix. This is nothing complicated

0
source

If you ride on your own, you may be interested in Episode 3 and 5 https://phoenixscreencasts.com/

(Please note that they require a paid subscription)

EDIT: The site was disabled by the author, this is no longer a valid answer.

-1
source

All Articles