번호 자동 부여 대응 및 API 공통 처리 보강
This commit is contained in:
@@ -26,8 +26,7 @@ class AuthRepositoryRemote implements AuthRepository {
|
||||
},
|
||||
options: Options(responseType: ResponseType.json),
|
||||
);
|
||||
final json = (response.data?['data'] as Map<String, dynamic>?) ?? {};
|
||||
return AuthSessionDto.fromJson(json).toEntity();
|
||||
return AuthSessionDto.fromJson(_api.unwrapAsMap(response)).toEntity();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -37,7 +36,6 @@ class AuthRepositoryRemote implements AuthRepository {
|
||||
data: {'refresh_token': refreshToken},
|
||||
options: Options(responseType: ResponseType.json),
|
||||
);
|
||||
final json = (response.data?['data'] as Map<String, dynamic>?) ?? {};
|
||||
return AuthSessionDto.fromJson(json).toEntity();
|
||||
return AuthSessionDto.fromJson(_api.unwrapAsMap(response)).toEntity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user