Skip to content

Cover the "ttl" property? #685

Description

@Spark-star

I created a model "Account" which extended from "User", I defined the property "ttl" like this:

{

  "name": "Account",
  "plural": "accounts",
  "base": "User",
  "Model": {
    "Master": "master"
  },
  "ttl": 31449600,
  "properties": {
    "cellphone": {
      "type": "string",
      "required": true
    }
  },
"relations": {
    "accessTokens": {
      "type": "hasMany",
      "model": "AccessToken",
      "foreignKey": "accountId"
    }
}
...
}

But when I use "Account.login" with given username and password , the responses' "ttl" has not been set to 31449600, which is still 1209600.

Is it a bug?

The max value the ttl can set is 31556926.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions