Token - V3

Database Information


Database NameDatabase TypeCollection Name
%tenant_code%_uracMongoDBtokens


Record Explanation



Field NameTypeMandatoryUniqueIndexedDescription
_idMongo IDYESYESYESMongo Record ID
userIdStringYESYESNOThe User ID
tokenStringYESYESNOThe Token
expiresISODateYESNONOThe token expiration time
statusStringYESNONOThe Token Status
tsTime stampYESNONORecord created timestamp
serviceStringYESNONOService Name
usernameStringYESYESNOThe username of the user


Sample


Record Sample
var data = {
	_id: ObjectId("5d382063eb1410d854af54fb"),
	userId: "5d35772718cb112936852a0b",
	token: "f65e8358-ce1d-47cb-b478-82e10c93f70e",
	expires: "2019-07-24T08:43:19.051Z",
	status: "active",
	ts: Double(1563784999051.0),
	service: "addUser",
	username: "fadinasr"
};