halu5071 / git-push-hackathon

$ git push hackathon :computer:
https://www.cyberagent.co.jp/
1 stars 0 forks source link

Fix AuthDataUseCase and AuthDataRepository #60

Closed halu5071 closed 6 years ago

halu5071 commented 6 years ago

Overview

now AuthDataUseCase convert JSON to AuthData, but this is not desirable. AuthDataRepository (and the implementation class) have a responsibility to generate AuthData.

Solution

NowAuthDataRepository#get() returns String. However, from this issue, AuthDataRepository#get() returns AuthData?