For API auth - phx.gen.auth or Pow?

API protection with tokens can be very easily implemented with Phoenix tokens, therefore no external dependencies needed.

Phoenix Token:

Tokens provide a way to generate and verify bearer tokens for use in Channels or API authentication.

Using a Phoenix Token per user:

How To’s:

I am not saying that this the way you should go, but it’s na alternative you may want to consider due to it’s simplicity and no need of further dependencies.

5 Likes