Add Guardian.DB to track API tokens.
This commit is contained in:
@@ -65,6 +65,10 @@ config :link_shortener, LinkShortenerWeb.Auth.Guardian,
|
||||
issuer: "link_shortener",
|
||||
secret_key: System.get_env("SECRET_KEY_BASE")
|
||||
|
||||
config :guardian, Guardian.DB,
|
||||
repo: LinkShortener.Repo,
|
||||
schema_name: "guardian_tokens"
|
||||
|
||||
# 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