Patch constant for Dart 1
This commit is contained in:
parent
c728b385e7
commit
9fcfcb6f01
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class AngelAuth<T> {
|
|||
if (_jwtLifeSpan > 0) {
|
||||
cookie.maxAge ??= _jwtLifeSpan < 0
|
||||
? -1
|
||||
: _jwtLifeSpan ~/ Duration.millisecondsPerSecond;
|
||||
: _jwtLifeSpan ~/ 1000;
|
||||
cookie.expires ??=
|
||||
new DateTime.now().add(new Duration(milliseconds: _jwtLifeSpan));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue