Add the API Authentication.
This commit is contained in:
@@ -47,6 +47,10 @@ config :logger, :console,
|
||||
# Use Jason for JSON parsing in Phoenix
|
||||
config :phoenix, :json_library, Jason
|
||||
|
||||
config :link_shortener, LinkShortenerWeb.Auth.Guardian,
|
||||
issuer: "link_shortener",
|
||||
secret_key: System.get_env("SECRET_KEY_BASE")
|
||||
|
||||
# Import environment specific config. This must remain at the bottom
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{config_env()}.exs"
|
||||
|
||||
Reference in New Issue
Block a user