You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A repository package that provides an abstraction layer over authentication operations. It wraps an `HtAuthClient` implementation, offering a clean interface for authentication flows, ensuring standardized exception propagation, and handling authentication token persistence using `HtKVStorageService`.
7
+
A repository package that provides an abstraction layer over authentication operations. It wraps an `AuthClient` implementation, offering a clean interface for authentication flows, ensuring standardized exception propagation, and handling authentication token persistence using `HtKVStorageService`.
8
8
9
9
## Getting Started
10
10
11
11
Add the package to your `pubspec.yaml`:
12
12
13
13
```yaml
14
14
dependencies:
15
-
ht_auth_repository: any # Use the latest version
15
+
auth_repository: any # Use the latest version
16
16
```
17
17
18
18
## Features
@@ -27,24 +27,24 @@ dependencies:
27
27
- `signOut`: Signs out the user and clears the auth token.
28
28
- Manages authentication token persistence internally using `HtKVStorageService`.
29
29
- Exposes `saveAuthToken(String token)`, `getAuthToken()`, and `clearAuthToken()` for direct token manipulation if needed, but these are typically handled by the main auth flow methods.
30
-
- Propagates standardized `HtHttpException`s from the underlying client and `StorageException`s from the storage service.
30
+
- Propagates standardized `HttpException`s from the underlying client and `StorageException`s from the storage service.
31
31
32
32
## Usage
33
33
34
-
Instantiate `HtAuthRepository` by providing implementations of `HtAuthClient` and `HtKVStorageService`:
34
+
Instantiate `AuthRepository` by providing implementations of `AuthClient` and `HtKVStorageService`:
This package is licensed under the [PolyForm Free Trial](LICENSE). Please review the terms before use.
107
+
This package is source-available and licensed under the [PolyForm Free Trial 1.0.0](LICENSE). Please review the terms before use.
108
+
109
+
For commercial licensing options that grant the right to build and distribute unlimited applications, please visit the main [**Flutter News App - Full Source Code Toolkit**](https://github.com/flutter-news-app-full-source-code) organization.
0 commit comments