fix: set oidc_id from user_info["sub"]
This commit is contained in:
parent
5287a20b98
commit
681db5dc71
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue