From 3fbd794f67267e67e626ab1ad4de0865e84b7df5 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sat, 3 Jan 2026 23:40:53 +0100 Subject: [PATCH] =?UTF-8?q?fix(auth):=20correct=20endpoint=20path=20/auth/?= =?UTF-8?q?me=20=E2=86=92=20/auth/users/me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 5 +++++ lib/core/auth/auth_datasource.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 994530b..b30b27c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.3] - 2026-01-03 + +### Fixed +- Fixed auth endpoint path: `/auth/me` → `/auth/users/me` + ## [1.0.2] - 2026-01-03 ### Fixed diff --git a/lib/core/auth/auth_datasource.dart b/lib/core/auth/auth_datasource.dart index 2129daa..c71e46b 100644 --- a/lib/core/auth/auth_datasource.dart +++ b/lib/core/auth/auth_datasource.dart @@ -102,7 +102,7 @@ class AuthDatasource { /// Returns user profile if authenticated via the proxy. /// Throws 401 if not authenticated or accessing directly. Future getCurrentUser() async { - final response = await _dio.get>('/auth/me'); + final response = await _dio.get>('/auth/users/me'); return AuthSyncResponse.fromJson(response.data!); } diff --git a/pubspec.yaml b/pubspec.yaml index b497a75..d04896b 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.2+1 +version: 1.0.3+1 environment: sdk: ^3.10.4