From 9fcfcb6f0141574eb4d9cefedb93e1ffc035840c Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 10 Jul 2018 19:33:32 -0400 Subject: [PATCH] Patch constant for Dart 1 --- lib/src/plugin.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }