Skip to content

Instantly share code, notes, and snippets.

Domagoj Franc dokicro

View GitHub Profile
@nikneroz
nikneroz / Guardian JWT.md
Last active Jul 26, 2020
Elixir + Phoenix Framework + Guardian + JWT. This is tutorial and step by step installation guide.
View Guardian JWT.md

Elixir + Phoenix Framework + Guardian + JWT + Comeonin

Preparing environment

We need to generate secret key for development environment.

mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf

Let's generate User model and controller.

You can’t perform that action at this time.