maxAllowedLifetime property

Duration maxAllowedLifetime
getter/setter pair

Maximum lifetime of tokens that will be accepted.

This value is used to prevent tokens with unusually long lifetimes from being accepted. For example, a token that expires in 10 years time is probably either a bug or something malicious.

Implementation

Duration maxAllowedLifetime = const Duration(minutes: 30);