diff --git a/lib/src/plugin.dart b/lib/src/plugin.dart index 82b3772f..c25a20bf 100644 --- a/lib/src/plugin.dart +++ b/lib/src/plugin.dart @@ -191,7 +191,7 @@ class AngelAuth { if (_jwtLifeSpan > 0) { cookie.maxAge ??= _jwtLifeSpan < 0 ? -1 - : _jwtLifeSpan ~/ Duration.millisecondsPerSecond; + : _jwtLifeSpan ~/ 1000; cookie.expires ??= new DateTime.now().add(new Duration(milliseconds: _jwtLifeSpan)); }