Add Guardian.DB to track API tokens.

This commit is contained in:
2024-08-31 14:32:08 +03:00
parent 8697be9f17
commit 2f4fc790be
6 changed files with 54 additions and 4 deletions
+4
View File
@@ -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"