/mnt/Vps3/Mount/Domain/Api.Workandtravel.World/Controller/User.php:80 string(71) "/mnt/Vps3/Mount/Domain/Api.Workandtravel.World/Data/User/Html/Info.json"
{
"node": {
"id": ...,
"uuid": "...",
"email": "...",
"key": "...",
"isActive": ...,
"isLoggedIn": {
"date": "2025-09-17 07:31:19.805575",
"timezone_type": 3,
"timezone": "UTC"
},
"isCreated": {
"date": "2025-03-24 08:53:52.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"isUpdated": {
"date": "2025-09-17 07:31:19.806010",
"timezone_type": 3,
"timezone": "UTC"
},
"isDeleted": null,
"profile": [],
"refreshToken": "...",
"role": [
{
"uuid": "...",
"#class": "Account.Role",
"name": "ROLE_ADMIN",
"rank": 2,
"permission": []
}
],
"token": "..."
}
}
The token returned from the login post is the bearer token used as header for api requests where the Authorization header is required:
import user from "/Module/User.js";
let token = user.token();
header("Authorization", 'Bearer ' + token);
request(url, data, (url, response) => {
/*
header will be used during the request
*/
});