nsarno / knock

Seamless JWT authentication for Rails API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting token lifetime according to user field

Joaquim-Ferrer opened this issue · comments

According to the docs it only seems to be possible to change the token lifetime according to the class of the model but my admins are defined by a boolean field .admin in the user.

Is it possible to define the token lifetime according to an user field?