Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Setting token lifetime according to user field #270

Open
Joaquim-Ferrer opened this issue Oct 17, 2020 · 0 comments
Open

Setting token lifetime according to user field #270

Joaquim-Ferrer opened this issue Oct 17, 2020 · 0 comments

Comments

@Joaquim-Ferrer
Copy link

Joaquim-Ferrer commented Oct 17, 2020

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant