Blame view
node_modules/loopback/common/models/access-token.json
688 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
{ "name": "AccessToken", "properties": { "id": { "type": "string", "id": true }, "ttl": { "type": "number", "ttl": true, "default": 1209600, "description": "time to live in seconds (2 weeks by default)" }, "created": { "type": "Date" } }, "relations": { "user": { "type": "belongsTo", "model": "User", "foreignKey": "userId" } }, "acls": [ { "principalType": "ROLE", "principalId": "$everyone", "permission": "DENY" }, { "principalType": "ROLE", "principalId": "$everyone", "property": "create", "permission": "ALLOW" } ] } |