summaryrefslogtreecommitdiff
path: root/lib/pleroma/jwt.ex
blob: 10102ff5df4acd426698cf6d65146b510eb2d878 (plain)
1
2
3
4
5
6
7
8
9
defmodule Pleroma.JWT do
  use Joken.Config

  @impl true
  def token_config do
    default_claims(skip: [:aud])
    |> add_claim("aud", &Pleroma.Web.Endpoint.url/0, &(&1 == Pleroma.Web.Endpoint.url()))
  end
end