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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions