Skip to content

Commit 17fc972

Browse files
committed
fix(config): update default JWT expiry hours to 1 month
- Change default JWT expiry hours from 1 hour to 720 hours (1 month) - Modify the fallback value in int.tryParse from '1' to '720' - This change affects the jwtExpiryDuration getter in EnvironmentConfig class
1 parent 0377190 commit 17fc972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/config/environment_config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ abstract final class EnvironmentConfig {
109109
/// The value is read from the `JWT_EXPIRY_HOURS` environment variable.
110110
/// Defaults to 1 hour if not set or if parsing fails.
111111
static Duration get jwtExpiryDuration {
112-
final hours = int.tryParse(_env['JWT_EXPIRY_HOURS'] ?? '1');
112+
final hours = int.tryParse(_env['JWT_EXPIRY_HOURS'] ?? '720'); // 1 month
113113
return Duration(hours: hours ?? 1);
114114
}
115115

0 commit comments

Comments
 (0)