diff --git a/CHANGELOG.md b/CHANGELOG.md index 59bcbea..c84c64c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.10] - 2026-01-04 + +### Fixed +- Fixed OIDC callback route being redirected to login before processing + - Moved callback route exception check BEFORE the auth redirect check in router + - This was preventing token exchange from ever happening +- Added favicon.ico to web root for proper browser tab icon display + ## [1.0.9] - 2026-01-04 ### Fixed diff --git a/lib/routing/app_router.dart b/lib/routing/app_router.dart index eb4a7fa..bf22835 100644 --- a/lib/routing/app_router.dart +++ b/lib/routing/app_router.dart @@ -34,6 +34,11 @@ GoRouter appRouter(Ref ref) { return null; } + // Allow callback route through without auth check (must be checked FIRST!) + if (state.matchedLocation == AppRoutes.callback) { + return null; + } + final isAuthenticated = authState.value?.isAuthenticated ?? false; final isLoginRoute = state.matchedLocation == AppRoutes.login; @@ -47,11 +52,6 @@ GoRouter appRouter(Ref ref) { return AppRoutes.frontHall; } - // Allow callback route through without auth check - if (state.matchedLocation == AppRoutes.callback) { - return null; - } - return null; }, routes: [ diff --git a/pubspec.yaml b/pubspec.yaml index ea11c5b..f62089d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.9+1 +version: 1.0.10+1 environment: sdk: ^3.10.4 diff --git a/web/favicon.ico b/web/favicon.ico new file mode 100644 index 0000000..cab054d Binary files /dev/null and b/web/favicon.ico differ diff --git a/web/index.html b/web/index.html index 18de1b4..03fd5cd 100644 --- a/web/index.html +++ b/web/index.html @@ -27,6 +27,7 @@ + Tatlock