Skip to content

Instantly share code, notes, and snippets.

View rasjonell's full-sized avatar
💻
I use void linux btw

Gurgen rasjonell

💻
I use void linux btw
View GitHub Profile
@nikneroz
nikneroz / authorization.ex
Created December 11, 2017 09:25
Elixir + Phoenix Framework 1.3 + Guardian 1.0 + JWT(Refresh, Revoke, Recover) + Comeonin
# Elixir + Phoenix Framework 1.3 + Guardian + JWT(Refresh, Revoke, Recover) + Comeonin
### User model bootstrap
Let's generate User model and controller.
```bash
mix ecto.create # create DB table
mix phx.gen.json Accounts User users email:string password_hash:string # scaffold users structure
```