Skip to content

Commit 60a9502

Browse files
feat: バージョン0.1.3-beta リリース
- マルチアカウントのトークン管理を追加し、`TokenStore`を介してトークンの保存・取得を実装 - `MisskeyAuthManager`を導入し、OAuthおよびMiAuthの認証フローを統合管理 - 不要なストレージ関連APIを削除し、クライアントの責任を明確化 - READMEとCHANGELOGを更新し、新機能と変更点を反映
1 parent 764a14a commit 60a9502

3 files changed

Lines changed: 346 additions & 154 deletions

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.3-beta] - 2025-08-15
9+
10+
### Added
11+
- Multi-account token management via `TokenStore` abstraction
12+
- Default secure implementation: `SecureTokenStore` (backed by `flutter_secure_storage`)
13+
- High-level API `MisskeyAuthManager` to orchestrate OAuth/MiAuth authentication and token persistence
14+
- Models and types for account/token management: `StoredToken`, `AccountKey`, `AccountEntry`
15+
- Public exports for store/manager types from `misskey_auth.dart`
16+
17+
### Changed
18+
- `MisskeyOAuthClient` and `MisskeyMiAuthClient` no longer persist tokens; they only perform the authentication flow and return results
19+
- Constructors now focus on networking concerns (`Dio` and timeouts)
20+
21+
### Removed
22+
- Storage-related APIs from clients:
23+
- `MisskeyOAuthClient.getStoredAccessToken()`
24+
- `MisskeyOAuthClient.clearTokens()`
25+
- `MisskeyMiAuthClient.getStoredAccessToken()`
26+
- `MisskeyMiAuthClient.clearTokens()`
27+
- `MisskeyMiAuthClient` constructor parameter for storage injection
28+
29+
### Breaking Changes
30+
- Removed storage APIs from both `MisskeyOAuthClient` and `MisskeyMiAuthClient` (use `MisskeyAuthManager` and `TokenStore` instead)
31+
- `MisskeyMiAuthClient` constructor signature changed (storage parameter removed)
32+
- Token lifecycle (save/read/delete) responsibilities moved from clients to `TokenStore`/`MisskeyAuthManager`
33+
834
## [0.1.2-beta] - 2025-08-15
935

1036
### Added

0 commit comments

Comments
 (0)