AP
Size: a a a
AP
AP
Я
PZ
AK
PS
PZ
D
{:ok, %Imcon.Auth.User{meta: #Ecto.Schema.Metadata<:loaded, "user">, email: "john@caix.ru", encrypted_password: "$2b$12$z.x819sou/sXbxVdEnuu..TTY2zdaLiTARENXkRDeS5HKAxaPJKpe", first_name: "John", id: 1, inserted_at: ~N[2019-01-28 05:52:21], last_name: "Doe", owned_tree: #Ecto.Association.NotLoaded<association :owned_tree is not loaded>, password: nil, role: "user", tree: #Ecto.Association.NotLoaded<association :tree is not loaded>, updated_at: ~N[2019-01-28 05:52:21], user_tree: #Ecto.Association.NotLoaded<association :user_tree is not loaded>}, %{"aud" => "imcon", "exp" => 1552218785, "iat" => 1549799585, "iss" => "imcon", "jti" => "878a0628-64fa-4440-83fe-eb9c4baf2276", "nbf" => 1549799584, "sub" => "1", "typ" => "access"}}
D
case Guardian.resource_from_token(token) do
{:ok, user} ->
{:ok, assign(socket, :current_user, user)}
{:error, _reason} ->
:error
end
end
PZ
PZ
AK
AK
PZ
PZ
AK
AK
AK