Added a test covering "expires_in" as string
diff --git a/test/handle_access_token_response_test.dart b/test/handle_access_token_response_test.dart
index 4561749..1663d3f 100644
--- a/test/handle_access_token_response_test.dart
+++ b/test/handle_access_token_response_test.dart
@@ -225,6 +225,12 @@
startTime.millisecondsSinceEpoch + 90 * 1000);
});
+ test('with expires-in encoded as string', () {
+ var credentials = handleSuccess(expiresIn: '110');
+ expect(credentials.expiration?.millisecondsSinceEpoch,
+ startTime.millisecondsSinceEpoch + 100 * 1000);
+ });
+
test('with a non-string refresh token throws a FormatException', () {
expect(() => handleSuccess(refreshToken: 12), throwsFormatException);
});