Skip to content

Commit ce7dec7

Browse files
authored
refactor(bearer_authentication): lint warnings on auth examples (#785)
1 parent dc20c70 commit ce7dec7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/examples_basic_authentication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
report_on: "routes"
3232

3333
docker:
34+
if: false
3435
uses: ./.github/workflows/.docker_tests.yaml
3536
with:
3637
# TODO(erickzanardo): temporarirly disabled while dart_frog_auth is
3738
# no published yet.
38-
if: false
3939
setup: rm pubspec_overrides.yaml && dart pub global activate --source path ../../packages/dart_frog_cli
4040
working_directory: examples/basic_authentication

.github/workflows/examples_bearer_authentication.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
report_on: "routes"
3232

3333
docker:
34+
if: false
3435
uses: ./.github/workflows/.docker_tests.yaml
3536
with:
3637
# TODO(erickzanardo): temporarirly disabled while dart_frog_auth is
3738
# no published yet.
38-
if: false
3939
setup: rm pubspec_overrides.yaml && dart pub global activate --source path ../../packages/dart_frog_cli
4040
working_directory: examples/bearer_authentication

examples/bearer_authentication/routes/auth/_middleware.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:dart_frog/dart_frog.dart';
44

55
Handler middleware(Handler handler) {
66
final userRepository = UserRepository();
7-
final sessionRepository = SessionRepository();
7+
const sessionRepository = SessionRepository();
88

99
return handler
1010
.use(requestLogger())

examples/bearer_authentication/routes/users/_middleware.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Future<User?> Function(String) userFromToken({
1414

1515
Handler middleware(Handler handler) {
1616
final userRepository = UserRepository();
17-
final sessionRepository = SessionRepository();
17+
const sessionRepository = SessionRepository();
1818

1919
return handler
2020
.use(requestLogger())

0 commit comments

Comments
 (0)