$ionicUser.data or .details is null


#1

hi, i did a login custom with ionic creator, in my server i return this in json format
$payload = [
‘user_id’ => (string) $user->id,
‘custom’ => [
‘username’ => $user->username,
‘email’ => $user->email,
‘first_name’ => $user->first_name,
‘last_name’ => $user->last_name,
‘avatar’ => $user->avatar,
‘active’ => $user->active,
‘id_empresa’ => $user->idempresa,
]
];

but how can i access to that custom data,

i tried $ionicUser.details but nothing