TOKEN_TTL
infinite/ no expiry
#23
Replies: 3 comments
-
I think you could make the PS. A never expiring token is generally a bad security strategy. I'd recommend a shorter token lifetime with periodic calls to refresh_token API view to either refresh the expiry or replace with new token. |
Beta Was this translation helpful? Give feedback.
-
@eshaan7 Do you think it's a bad idea to use this library for a use case where we have to provide an API key for all the users in the system. A part of the requirement is to make this API key not to expire. |
Beta Was this translation helpful? Give feedback.
-
I assume you want the ability to have multiple tokens per user and that's why you stumbled upon this library? Otherwise, you can probably just use the default token mechanism inbuilt into django rest framework. I'd say that this library does solves the use case of issuing such tokens to users which do not conflict with each other. This can be achieved by just creating another |
Beta Was this translation helpful? Give feedback.
-
how to setup durin such that TOKEN_TTL never expires ?
Beta Was this translation helpful? Give feedback.
All reactions