Parent Issue / 親Issue
#408
Motivation / 目的
Implement LogoutUseCase in the Application layer to revoke the current session token.
ログアウト処理を担う LogoutUseCase を Application 層に実装します。
What to do / 実施内容
LogoutUseCase.php: handle(string $plainTextToken): void
TokenServiceInterface::revokeCurrentToken($plainTextToken) を呼び出す
- 失敗時は例外を伝播する
Note: Login と同様に Command/Input オブジェクトは作成しない。引数は string $plainTextToken のみ。
Tests / テスト
test_handle_revokes_current_token
test_handle_propagates_exception_when_revocation_fails
Parent Issue / 親Issue
#408
Motivation / 目的
Implement
LogoutUseCasein the Application layer to revoke the current session token.ログアウト処理を担う
LogoutUseCaseを Application 層に実装します。What to do / 実施内容
LogoutUseCase.php:handle(string $plainTextToken): voidTokenServiceInterface::revokeCurrentToken($plainTextToken)を呼び出すTests / テスト
test_handle_revokes_current_tokentest_handle_propagates_exception_when_revocation_fails