Patch constant for Dart 1

This commit is contained in:
Tobe O 2018-07-10 19:33:32 -04:00
parent c728b385e7
commit 9fcfcb6f01

View file

@ -191,7 +191,7 @@ class AngelAuth<T> {
if (_jwtLifeSpan > 0) { if (_jwtLifeSpan > 0) {
cookie.maxAge ??= _jwtLifeSpan < 0 cookie.maxAge ??= _jwtLifeSpan < 0
? -1 ? -1
: _jwtLifeSpan ~/ Duration.millisecondsPerSecond; : _jwtLifeSpan ~/ 1000;
cookie.expires ??= cookie.expires ??=
new DateTime.now().add(new Duration(milliseconds: _jwtLifeSpan)); new DateTime.now().add(new Duration(milliseconds: _jwtLifeSpan));
} }