|
|
|
|
|
by jjice
757 days ago
|
|
I think you're right, but it seems like you get into a tricky territory that'll never be great (as everything with security has compromised). Too long is an issue for attacks, but convenient for users. Too short and you have to do an initial re-auth over and over again, partially defeating the benefits. Even if the TTL is short, there are plenty of ways to compromise a token and use it immediately in an automated system. If you're using JWTs, I'd lean shorter TTLs and embrace this as a potential concern. Not sure what the best re-auth frequency is though. I'd be really interested to see other's thoughts on that. |
|