-
Notifications
You must be signed in to change notification settings - Fork 3
Sample State
resant18 edited this page Nov 19, 2019
·
3 revisions
entities: {
users: {
0: {id: 1,
username: "bran",
email: "[email protected]"
},
1: {id: 2,
username: "jon",
email: "[email protected]"
}
},
profiles: {
0: {
id: 1,
firstName: "Bran",
lastName: "Stark",
profileUrl: "bran.jpg"
}
1: {
id: 2,
firstName: "Jon",
lastName: "Stark",
profileUrl: "jon.jpg"
}
},
trips: {
all: {
0: {
id: "68b8bc8xbyr8742",
name: "SF - San Diego Trip"
origin: [-1331.712, 2390.1631},
destination: [-1321.712, 1390.1631],
user: "bran",
},
1: {
id: 2,
name: "SF - Tahoe Trip"
origin: {lat: -1331.712, 2390.1631},
destination: {lat: -1121.712, 1450.1631},
user: "jon",
pois: []
}
user: {
id: 2,
name: "Tahoe - Reno Trip"
origin: {lat: -1131.712, 3390.1631},
destination: {lat: -1021.712, 1150.1631},
user: "jon"
}
new: {
id: 2,
name: "Tahoe - Reno Trip"
origin: {lat: -1131.712, 3390.1631},
destination: {lat: -1021.712, 1150.1631},
user: "jon"
}
}
errors: {
auth: ["Invalid username and/or password"],
pin: ["Pin has already been added to board!"]
},
session: {
isAuthenticated: true
user: {
id: "5dd0fhwiu74yr2a82379"
iat: 1574123766
exp: 1574127366
}
}
}