appleboy / gin-jwt

JWT Middleware for Gin framework
MIT License
2.73k stars 382 forks source link

Is there a way to set the token timeout value dynamically depending on the user? #313

Open leeyjeen opened 1 year ago

leeyjeen commented 1 year ago

Is there a way to set the token timeout value dynamically depending on the user? For example, can some users expire in 24 hours and others expire in 30 days? If there is a way, I would really appreciate it if you could share it!!