Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednfwela committed Mar 20, 2024
1 parent 7137cb9 commit b8d442e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/oidc/example/lib/access_token_usage_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import 'package:oidc/oidc.dart';

const kAuthorizationHeader = 'Authorization';
void _tryAppendAccessToken(
OidcUserManager userManager, Map<String, dynamic> headers) {
OidcUserManager userManager,
Map<String, dynamic> headers,
) {
if (headers.containsKey(kAuthorizationHeader)) {
// do nothing if header already exists.
return;
Expand Down
4 changes: 1 addition & 3 deletions packages/oidc/test/oidc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b8d442e

Please sign in to comment.