Skip to content

Setting TTL to -1 immediately destroys authtoken #3380

Description

@kahyoung-zz

Description/Steps to reproduce

  • Create a model that extends the User
  • Set ttl to -1
  • Login

Expected result

  • Creates permanent authtoken for the logged in user

Actual result

  • Login fails with 401
  • Auth token no longer exists

Additional information

I thought that this would have been supported with this - doesn't seem to be working for me.

Checked out (these docs)[https://loopback.io/doc/en/lb3/Model-definition-JSON-file.html] - and added allowEternalTokens to the options property - still didn't work.

Metadata

Metadata

Assignees

No one assigned

    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