mirror of
https://github.com/kevin-DL/phoenix_api_template.git
synced 2026-01-19 05:35:18 +00:00
Installed guardian
create authentication/password verification method
This commit is contained in:
@@ -23,6 +23,11 @@ config :logger, :console,
|
||||
format: "$time $metadata[$level] $message\n",
|
||||
metadata: [:request_id]
|
||||
|
||||
# Guardian config
|
||||
config :phoenix_api_template, PhoenixApiTemplateWeb.Auth.Guardian,
|
||||
issuer: "phoenix_api_template",
|
||||
secret_key: ""
|
||||
|
||||
# Use Jason for JSON parsing in Phoenix
|
||||
config :phoenix, :json_library, Jason
|
||||
|
||||
|
||||
Reference in New Issue
Block a user