diff --git a/lib/src/registrator.dart b/lib/src/registrator.dart index 4de8deb9..2244cf86 100644 --- a/lib/src/registrator.dart +++ b/lib/src/registrator.dart @@ -206,7 +206,7 @@ class Registrator { expires ??= _expires; - expires = num.tryParse(expires) ?? 0; + expires = num.tryParse(expires.toString()) ?? 0; if (expires < MIN_REGISTER_EXPIRES) { expires = MIN_REGISTER_EXPIRES;