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 `AuthClient` 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 `KvStorageService`.
- `verifySignInCode`: Verifies the code, saves the auth token, and returns the user.
26
27
- `signInAnonymously`: Signs in anonymously, saves the auth token, and returns the user.
27
28
- `signOut`: Signs out the user and clears the auth token.
28
-
- Manages authentication token persistence internally using `HtKVStorageService`.
29
+
- Manages authentication token persistence internally using `KvStorageService`.
29
30
- 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
31
- Propagates standardized `HttpException`s from the underlying client and `StorageException`s from the storage service.
31
32
32
33
## Usage
33
34
34
-
Instantiate `AuthRepository` by providing implementations of `AuthClient` and `HtKVStorageService`:
35
+
Instantiate `AuthRepository` by providing implementations of `AuthClient` and `KvStorageService`:
0 commit comments