diff --git a/packages/oidc/example/lib/access_token_usage_example.dart b/packages/oidc/example/lib/access_token_usage_example.dart index d7219fe..cb02ed6 100644 --- a/packages/oidc/example/lib/access_token_usage_example.dart +++ b/packages/oidc/example/lib/access_token_usage_example.dart @@ -4,7 +4,9 @@ import 'package:oidc/oidc.dart'; const kAuthorizationHeader = 'Authorization'; void _tryAppendAccessToken( - OidcUserManager userManager, Map headers) { + OidcUserManager userManager, + Map headers, +) { if (headers.containsKey(kAuthorizationHeader)) { // do nothing if header already exists. return; diff --git a/packages/oidc/test/oidc_test.dart b/packages/oidc/test/oidc_test.dart index 6b4d323..7859190 100644 --- a/packages/oidc/test/oidc_test.dart +++ b/packages/oidc/test/oidc_test.dart @@ -5,10 +5,8 @@ import 'dart:convert'; import 'package:clock/clock.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart'; -import 'package:http/testing.dart'; import 'package:mocktail/mocktail.dart'; import 'package:oidc/oidc.dart'; -// import 'package:oidc/oidc.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'mock_client.dart'; @@ -77,7 +75,7 @@ void main() { expect(manager.discoveryDocumentUri, isNotNull); }); group('loadCachedToken', () { - final tokenCreatedAt = DateTime.utc(2024, 03, 01); + final tokenCreatedAt = DateTime.utc(2024, 03); final tokenCreatedAtClock = Clock.fixed(tokenCreatedAt); late Clock nowClock; // The idToken is created