Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fbd794f67 |
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.0.3] - 2026-01-03
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed auth endpoint path: `/auth/me` → `/auth/users/me`
|
||||||
|
|
||||||
## [1.0.2] - 2026-01-03
|
## [1.0.2] - 2026-01-03
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class AuthDatasource {
|
|||||||
/// Returns user profile if authenticated via the proxy.
|
/// Returns user profile if authenticated via the proxy.
|
||||||
/// Throws 401 if not authenticated or accessing directly.
|
/// Throws 401 if not authenticated or accessing directly.
|
||||||
Future<AuthSyncResponse> getCurrentUser() async {
|
Future<AuthSyncResponse> getCurrentUser() async {
|
||||||
final response = await _dio.get<Map<String, dynamic>>('/auth/me');
|
final response = await _dio.get<Map<String, dynamic>>('/auth/users/me');
|
||||||
return AuthSyncResponse.fromJson(response.data!);
|
return AuthSyncResponse.fromJson(response.data!);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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
|
# 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
|
# 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.
|
# 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:
|
environment:
|
||||||
sdk: ^3.10.4
|
sdk: ^3.10.4
|
||||||
|
|||||||
Reference in New Issue
Block a user