Skip to content

Commit

Permalink
fix: use the stringified tenant in the token
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 20, 2025
1 parent bffb700 commit 3609614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ash_authentication/jwt/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ defmodule AshAuthentication.Jwt.Config do
end

defp maybe_add_tenant_claim(cfg, resource, tenant) do
tenant = Ash.ToTenant.to_tenant(tenant, resource)

if Ash.Resource.Info.multitenancy_strategy(resource) do
Config.add_claim(
cfg,
Expand Down

0 comments on commit 3609614

Please sign in to comment.