fix: set oidc_id from user_info["sub"]

This commit is contained in:
Moritz 2025-07-17 22:33:42 +02:00 committed by moritz
parent 5287a20b98
commit 681db5dc71

View file

@ -91,7 +91,7 @@ defmodule Mv.Accounts.User do
changeset
|> Ash.Changeset.change_attribute(:email, user_info["preferred_username"])
|> Ash.Changeset.change_attribute(:oidc_id, user_info["id"])
|> Ash.Changeset.change_attribute(:oidc_id, user_info["sub"] || user_info["id"])
end
end
end