loopback icon indicating copy to clipboard operation
loopback copied to clipboard

How to set the "ttl" property?

Open Spark-star opened this issue 12 years ago • 2 comments

Hi ,everyone I want to create a 'accessToken' which more than '129600'. I define 'ttl' equal '31449600' in my 'account' model which extend from 'user' model.

In my opinion , when I log in the 'accessToken' should like this { "id": "8BDly7JTas4kOmddwsqdy44oZrOEmc6xJHEE0geWQGkrGvkJZyeS4xy3pXSpaxMnBhU", "ttl": 31449600, "created": "2014-11-04T10:22:05.700Z", "userId": "5457240cac1da089335c43a9" } but it doesn't , the 'ttl' is remain '129600'.

How can I override the ttl? THX

Spark-star avatar Nov 04 '14 10:11 Spark-star

Please post questions to https://groups.google.com/forum/#!forum/loopbackjs. See https://github.com/strongloop/loopback/wiki/Reporting-issues#question for more details.

superkhau avatar Feb 26 '15 03:02 superkhau

@superkhau you didn't do anything helpful just closed his issue which can help me now in 2019 if someone answered it :S

heshamelmasry77 avatar Feb 18 '19 17:02 heshamelmasry77