logout method
KO: 로그아웃
EN: Logout
Implementation
Future<UserIdResponse> logout() async {
return ApiFactory.handleApiError(() async {
try {
Response response = await _dio.post(Constants.v1LogoutPath);
return UserIdResponse.fromJson(response.data);
} catch (e) {
rethrow;
} finally {
await TokenManagerProvider.instance.manager.clear();
}
});
}